# Elements RTL

**URL:** https://talk.remobjects.com/c/elements/rtl/15.md

[Latest](https://talk.remobjects.com/latest.md) · [Categories](https://talk.remobjects.com/categories.md) · [Tags](https://talk.remobjects.com/tags.md)

---

## [RTL2 contributor license](https://talk.remobjects.com/t/rtl2-contributor-license/27567)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 3\
**Last updated:** [December 6, 2022, 1:07pm UTC](https://talk.remobjects.com/t/rtl2-contributor-license/27567 "2022-12-06T13:07:14Z")

</div>

Hi, Should the contributor license for rtl2 cover every target ? ToffeeV2.iOS says trial expired but ToffeeV2.MacOS is ok. Cheers, John

---

## [Math.Round toffee vs darwin](https://talk.remobjects.com/t/math-round-toffee-vs-darwin/27018)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 9\
**Last updated:** [July 31, 2022, 12:28am UTC](https://talk.remobjects.com/t/math-round-toffee-vs-darwin/27018 "2022-07-31T00:28:14Z")

</div>

Hi, With this code var x := 1234.877; Log($'{Math.Round(x,0)}'); On darwin macos I get 1235 On toffee macos I get 1235.000000 Round.zip (1.9 MB) Cheers, John

---

## [Ticks](https://talk.remobjects.com/t/ticks/26898)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 49\
**Last updated:** [July 10, 2022, 9:30pm UTC](https://talk.remobjects.com/t/ticks/26898 "2022-07-10T21:30:29Z")

</div>

Hi, What is the Ticks property in DateTime doing ? I did Log($'{DateTime.UtcNow.Ticks}'); in a toffee and island console apps 2022-07-02 23:12:01.998631-0400 TicksIslandConsoleApplication\[64132:20920022\] 63792414721…

---

## [Date format island vs toffee](https://talk.remobjects.com/t/date-format-island-vs-toffee/26909)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 3\
**Last updated:** [July 6, 2022, 12:39pm UTC](https://talk.remobjects.com/t/date-format-island-vs-toffee/26909 "2022-07-06T12:39:17Z")

</div>

Hi, I have this var newDate := new DateTime(DateTime.UtcNow.Ticks); Log($'{newDate}'); in 2 mac console apps, one is darwin the other is toffee. Toffee gives this 2022-07-06 00:05:40 +0000 Island gives …

---

## [Add EUnit test project to shared Multi-platform project?](https://talk.remobjects.com/t/add-eunit-test-project-to-shared-multi-platform-project/26588)

<div class="topic-metadata">

**Author:** [@Lelelo1](https://talk.remobjects.com/u/Lelelo1)\
**Replies:** 5\
**Last updated:** [April 25, 2022, 7:54pm UTC](https://talk.remobjects.com/t/add-eunit-test-project-to-shared-multi-platform-project/26588 "2022-04-25T19:54:27Z")

</div>

I am trying to add a project from where I can test the library code which I have inside a Shared → Multi-Target Library project. I drag the library project to my .Net EUnit test project and it gets added in references - …

---

## [RTL api language?](https://talk.remobjects.com/t/rtl-api-language/26582)

<div class="topic-metadata">

**Author:** [@Lelelo1](https://talk.remobjects.com/u/Lelelo1)\
**Replies:** 9\
**Last updated:** [April 24, 2022, 8:18pm UTC](https://talk.remobjects.com/t/rtl-api-language/26582 "2022-04-24T20:18:54Z")

</div>

I am considering writing an api using RTL. As I understand it, RTL itself is made in Oxygene. Does it make sense therefore to pick Oxygene as the language to use?

---

## [Invalid double value '2.454' for locale 'en\_CA'](https://talk.remobjects.com/t/invalid-double-value-2-454-for-locale-en-ca/26028)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 24\
**Last updated:** [January 24, 2022, 9:01pm UTC](https://talk.remobjects.com/t/invalid-double-value-2-454-for-locale-en-ca/26028 "2022-01-24T21:01:41Z")

</div>

Hi, I have this method method convertValue(value:NSString):Double; begin exit Convert.ToDouble(value); end; On the watch os simulator it works fine but on a physical device I get MyWatchApp WatchKi…

---

## [StringBuilder](https://talk.remobjects.com/t/stringbuilder/25975)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 23\
**Last updated:** [January 10, 2022, 7:59pm UTC](https://talk.remobjects.com/t/stringbuilder/25975 "2022-01-10T19:59:41Z")

</div>

Hi, In RTL2 for toffee stringbuilder is mapped to Foundation.NSMutableString. On a stringbuilder I can do ToString. Where does ToString come from ? It’s not part of the StringBuilder class, on NSString or NSObject. It …

---

## [Community license for RTL2](https://talk.remobjects.com/t/community-license-for-rtl2/25979)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 2\
**Last updated:** [January 5, 2022, 12:24pm UTC](https://talk.remobjects.com/t/community-license-for-rtl2/25979 "2022-01-05T12:24:39Z")

</div>

Hi, Could we have an updated community license for RTL2 ? I think it ran out last July. Cheers, John

---

## [Type mismatch, cannot assign "array of NSString" to "array of RemObjects.Elements.RTL.String"](https://talk.remobjects.com/t/type-mismatch-cannot-assign-array-of-nsstring-to-array-of-remobjects-elements-rtl-string/25804)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 3\
**Last updated:** [December 7, 2021, 12:44pm UTC](https://talk.remobjects.com/t/type-mismatch-cannot-assign-array-of-nsstring-to-array-of-remobjects-elements-rtl-string/25804 "2021-12-07T12:44:46Z")

</div>

Hi, I have 2 mac console apps, one is Toffee the other is island. x ConsoleApplication2.zip (7.7 KB) ConsoleApplication12.zip (655.3 KB) Should the Island one fail to build with ? Type mismatch, cannot assign “array…

---

## [Get command line args](https://talk.remobjects.com/t/get-command-line-args/25784)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 2\
**Last updated:** [December 2, 2021, 1:25pm UTC](https://talk.remobjects.com/t/get-command-line-args/25784 "2021-12-02T13:25:54Z")

</div>

Hi, Is there a cross platform way of getting command line args ? I was looking in the rtl source for System.Environment.GetCommandLineArgs because I figured the .net version would use that and there doesn’t seem to be …

---

## [AccessViolation in ToISO8601String](https://talk.remobjects.com/t/accessviolation-in-toiso8601string/25158)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 5\
**Last updated:** [August 25, 2021, 9:02am UTC](https://talk.remobjects.com/t/accessviolation-in-toiso8601string/25158 "2021-08-25T09:02:21Z")

</div>

Hi, With a mac island console app, built using 2655 and this code var someTime := DateTime.UtcNow; var value := someTime.ToISO8601String I get an accessviolation An exception occurred in ConsoleApplicatio…

---

## [How to get contents of failed HttpRequest?](https://talk.remobjects.com/t/how-to-get-contents-of-failed-httprequest/24654)

<div class="topic-metadata">

**Author:** [@wdb](https://talk.remobjects.com/u/wdb)\
**Replies:** 2\
**Last updated:** [April 28, 2021, 1:41am UTC](https://talk.remobjects.com/t/how-to-get-contents-of-failed-httprequest/24654 "2021-04-28T01:41:56Z")

</div>

I am issuing some http requests that can return validation errors when they are not met they are returned with the status code 422. Only when I try to get the body of the http requests for such failures, I keep getting: …

---

## [Toffee AddYears](https://talk.remobjects.com/t/toffee-addyears/23732)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 3\
**Last updated:** [December 15, 2020, 12:38pm UTC](https://talk.remobjects.com/t/toffee-addyears/23732 "2020-12-15T12:38:24Z")

</div>

Hi, Isn’t the Toffee version of AddYears wrong ? That looks like its trying to add a timespan with 1 ms when it should be a years worth. Cheers, John

---

## [C# RTL Serialization](https://talk.remobjects.com/t/c-rtl-serialization/23029)

<div class="topic-metadata">

**Author:** [@garry.pettet](https://talk.remobjects.com/u/garry.pettet)\
**Replies:** 1\
**Last updated:** [September 6, 2020, 8:53pm UTC](https://talk.remobjects.com/t/c-rtl-serialization/23029 "2020-09-06T20:53:34Z")

</div>

Does the cross platform RTL library offer a way to serialise arbitrary objects to a binary file format? Something akin to: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/serialization/ Looking…

---

## [TimeSince platform differences](https://talk.remobjects.com/t/timesince-platform-differences/22473)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 32\
**Last updated:** [September 8, 2020, 6:43am UTC](https://talk.remobjects.com/t/timesince-platform-differences/22473 "2020-09-08T06:43:46Z")

</div>

Hi, On my mac var span := RemObjects.Elements.Rtl.DateTime.TimeSince(new RemObjects.Elements.RTL.DateTime(1970,1,1)); writeLn(span.TotalSeconds); That returns 1593726898.477118 On my raspberry pi I get 3635733054…

---

## [Island Http.ExecuteRequestSynchronous](https://talk.remobjects.com/t/island-http-executerequestsynchronous/22380)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 18\
**Last updated:** [July 3, 2020, 10:55am UTC](https://talk.remobjects.com/t/island-http-executerequestsynchronous/22380 "2020-07-03T10:55:03Z")

</div>

Hi, With the following on Raspberry Island namespace HttpConsoleApplication; type Program = class public class method Main(args: array of String): Int32; begin var response := Http.ExecuteRequestSyn…

---

## [Http class, private method](https://talk.remobjects.com/t/http-class-private-method/22463)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 2\
**Last updated:** [July 2, 2020, 2:07pm UTC](https://talk.remobjects.com/t/http-class-private-method/22463 "2020-07-02T14:07:37Z")

</div>

Hi, There is this method method ExecuteRequestSynchronous(aRequest: not nullable HttpRequest; aThrowOnError: Boolean): nullable HttpResponse; Does it really have to be private ? I don’t want to be catching exceptions…

---

## [How can I convert a binary string to an integer using RTL and C#?](https://talk.remobjects.com/t/how-can-i-convert-a-binary-string-to-an-integer-using-rtl-and-c/22241)

<div class="topic-metadata">

**Author:** [@garry.pettet](https://talk.remobjects.com/u/garry.pettet)\
**Replies:** 5\
**Last updated:** [June 28, 2020, 1:29pm UTC](https://talk.remobjects.com/t/how-can-i-convert-a-binary-string-to-an-integer-using-rtl-and-c/22241 "2020-06-28T13:29:19Z")

</div>

I’ve been reading the documentation for the Convert class in RTL, hoping to see the .NET Convert.ToInt64(string s, int base) method but I can’t find an equivalent. Can anyone suggest a cross-platform way to take a binar…

---

## [Case issues across platforms](https://talk.remobjects.com/t/case-issues-across-platforms/22381)

<div class="topic-metadata">

**Author:** [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)\
**Replies:** 8\
**Last updated:** [June 21, 2020, 9:11pm UTC](https://talk.remobjects.com/t/case-issues-across-platforms/22381 "2020-06-21T21:11:55Z")

</div>

Hi, HttpConsoleApplication.zip (2.0 MB) I started off with a Island console app with the following var response := Http.ExecuteRequestSynchronous(new HttpRequest(Url.UrlWithString('http://api.isailed.com/'),HttpRequ…

---

## [Elements RTL](https://talk.remobjects.com/t/elements-rtl/22151)

<div class="topic-metadata">

**Author:** [@garry.pettet](https://talk.remobjects.com/u/garry.pettet)\
**Replies:** 1\
**Last updated:** [May 30, 2020, 5:46pm UTC](https://talk.remobjects.com/t/elements-rtl/22151 "2020-05-30T17:46:16Z")

</div>

I’ve been reading about Elements RTL. The specific example described in the docs regards a Dictionary class. If my intent is to write console apps for macOS and Windows in Swift - is there any reason to use the RTL Dict…

---

## [TDictionary OnKeyNotify](https://talk.remobjects.com/t/tdictionary-onkeynotify/19890)

<div class="topic-metadata">

**Author:** [@serhii](https://talk.remobjects.com/u/serhii)\
**Replies:** 2\
**Last updated:** [July 12, 2019, 1:22pm UTC](https://talk.remobjects.com/t/tdictionary-onkeynotify/19890 "2019-07-12T13:22:12Z")

</div>

Hello! Anybody here have code example for TDictionary.OnKeyNotify? After convert code from Delphi I got error for line: Self.OnKeyNotify := TDictionaryEventsHandler.OnKeyNotify; Self - TDictionary type TDictionaryEv…

---

## [How to use the Sugar API](https://talk.remobjects.com/t/how-to-use-the-sugar-api/12634)

<div class="topic-metadata">

**Author:** [@shpend\_hoti](https://talk.remobjects.com/u/shpend_hoti)\
**Replies:** 1\
**Last updated:** [April 6, 2017, 8:13pm UTC](https://talk.remobjects.com/t/how-to-use-the-sugar-api/12634 "2017-04-06T20:13:23Z")

</div>

Hey Guys, i would like to know how exactly am i able to use the sugar api in a solution of OXYGENE ISLAND? I dont really know how to use the api^^, any Explanation of it would be nice :slight\_smile: Yours, Shpend …

---

## [Problem with POST request (Android)](https://talk.remobjects.com/t/problem-with-post-request-android/12003)

<div class="topic-metadata">

**Author:** [@LeoCV](https://talk.remobjects.com/u/LeoCV)\
**Replies:** 8\
**Last updated:** [January 20, 2017, 9:22pm UTC](https://talk.remobjects.com/t/problem-with-post-request-android/12003 "2017-01-20T21:22:08Z")

</div>

I'm using RemObject Elements 9.0.97.2071 with Visual Studio 2015 to make an Android App. I'm having a problem with a code similar to the following: let Request = HttpRequest( Url("http://www.somepage.com") ) Request…

---

## [How do I add Sugar reference to .Net project?](https://talk.remobjects.com/t/how-do-i-add-sugar-reference-to-net-project/11422)

<div class="topic-metadata">

**Author:** [@mtiede](https://talk.remobjects.com/u/mtiede)\
**Replies:** 2\
**Last updated:** [November 28, 2016, 3:48pm UTC](https://talk.remobjects.com/t/how-do-i-add-sugar-reference-to-net-project/11422 "2016-11-28T15:48:44Z")

</div>

I can make a Java app and just add a reference and Sugar is a choice. But if I make a WPF project and try to add a reference, I can't find any place that has Sugar. ... time passes ... I think I've found it here: C…

---

## [Elements Sugar dev](https://talk.remobjects.com/t/elements-sugar-dev/10904)

<div class="topic-metadata">

**Author:** [@landrix](https://talk.remobjects.com/u/landrix)\
**Replies:** 2\
**Last updated:** [October 5, 2016, 11:16am UTC](https://talk.remobjects.com/t/elements-sugar-dev/10904 "2016-10-05T11:16:57Z")

</div>

Sorry for spamming, but i need a decision for me. Are pull requests desirable? I need some features. If not, then I'm looking for another solution.

---

## [Sugar-develop and watchOS problem](https://talk.remobjects.com/t/sugar-develop-and-watchos-problem/10316)

<div class="topic-metadata">

**Author:** [@Jose\_A\_Molina](https://talk.remobjects.com/u/Jose_A_Molina)\
**Replies:** 4\
**Last updated:** [August 8, 2016, 10:34am UTC](https://talk.remobjects.com/t/sugar-develop-and-watchos-problem/10316 "2016-08-08T10:34:38Z")

</div>

If I try to compile Sugar-developer downloaded from Github the following error occurs: Error 33 (GetTargetSDKType) No matching version of watchOS has been found that is supported by both your local .fx files (sup…

---

## [Sugar.Test.Cooper.Android problems](https://talk.remobjects.com/t/sugar-test-cooper-android-problems/10320)

<div class="topic-metadata">

**Author:** [@Jose\_A\_Molina](https://talk.remobjects.com/u/Jose_A_Molina)\
**Replies:** 0\
**Last updated:** [August 7, 2016, 10:47am UTC](https://talk.remobjects.com/t/sugar-test-cooper-android-problems/10320 "2016-08-07T10:47:27Z")

</div>

If I try to compile Sugar.Test.Cooper.Android the following error occurs: Error 46 () Uncaught translation error: com.android.dx.cf.code.SimException: at stack depth 0, expected type long but found com.remobjects…

---

## [Sugar.Test.Nougat.iOS problems](https://talk.remobjects.com/t/sugar-test-nougat-ios-problems/10317)

<div class="topic-metadata">

**Author:** [@Jose\_A\_Molina](https://talk.remobjects.com/u/Jose_A_Molina)\
**Replies:** 0\
**Last updated:** [August 7, 2016, 9:35am UTC](https://talk.remobjects.com/t/sugar-test-nougat-ios-problems/10317 "2016-08-07T09:35:05Z")

</div>

If I try to compile Sugar.Test.Nougat.iOS many errors occur: Error 1 (E46) Unknown identifier “Utils” E:\\Descargas\\Programacion\\Oxygene\\Sugar\\sugar-develop\\Sugar.Tests\\Tests\\MessageDigest.pas 25 19 Su…

---

## [Loading watchOS 2.2 .fx files problem (Sugar)](https://talk.remobjects.com/t/loading-watchos-2-2-fx-files-problem-sugar/10318)

<div class="topic-metadata">

**Author:** [@Jose\_A\_Molina](https://talk.remobjects.com/u/Jose_A_Molina)\
**Replies:** 0\
**Last updated:** [August 7, 2016, 10:07am UTC](https://talk.remobjects.com/t/loading-watchos-2-2-fx-files-problem-sugar/10318 "2016-08-07T10:07:37Z")

</div>

When I load Sugar, Visual Studio tries to download .fx files from watchOS 2.2, although they are already installed on my system, however, it fails: Best regards, Jose A.

[Next page](https://talk.remobjects.com/c/elements/rtl/15.md?page=1)
