ios: TextConversion & Rnd()

  1. I have a text var that I want to be converted into Int64. For strings this is no problem. But for Texts I can’t find the proper info.

  2. I want to create a random number (for example in (0,1] interval) On the desktop I used Rnd() or New Random. That seems not to work for iOS.

Thanks for any pointer.
Dick

All in the docs.

https://docs.xojo.com/Integer.FromText
https://docs.xojo.com/Xojo.Math.RandomInt

Hi Gavin,
Thanks. Sorry that I have so much trouble in locating the proper entries in the docs. Anyway this helped. I have one further problem to tackle namely writing information into a sql database. I used MBS plugins on the desktop app. For iOS I searched in iOS examples but could not find a good example but maybe you have a pointer. Otherwise I will start a new conversation.
Dick

No problem, you’ll find your way around the docs soon enough. Sometimes it’s just as quick to throw a quick search at Google: “Xojo iOS Random Number” for example, and you often get back a link to a page from the docs and a few links to forum answers.

[quote=471396:@Dick Bierman]
Anyway this helped. I have one further problem to tackle namely writing information into a sql database. I used MBS plugins on the desktop app. For iOS I searched in iOS examples but could not find a good example but maybe you have a pointer. Otherwise I will start a new conversation. [/quote]
Check out the Example Projects folder bundled with Xojo. I see three SQLite example projects in Example Projects > iOS > Database.