ios: TextConversion & Rnd()

  1. 2 weeks ago

    Dick B

    Jan 14 Pre-Release Testers, Xojo Pro Amsterdam

    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

  2. Gavin S

    Jan 14 Pre-Release Testers, Xojo Pro, Forum Moderators, MVP UK

    All in the docs.

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

  3. Dick B

    Jan 14 Pre-Release Testers, Xojo Pro Amsterdam

    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

  4. Gavin S

    Jan 14 Pre-Release Testers, Xojo Pro, Forum Moderators, MVP UK
    Edited 2 weeks ago

    @Dick B Sorry that I have so much trouble in locating the proper entries in the docs.

    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.

    @Dick B 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.

    Check out the Example Projects folder bundled with Xojo. I see three SQLite example projects in Example Projects > iOS > Database.

or Sign Up to reply!