How to make an app - Andromo App Maker

Announcement

Collapse
No announcement yet.

return value to a paragraph

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • return value to a paragraph

    Hi everyone.

    I wonder if we can return a value to paragraph

    e.g:

    a = 1;
    b = 2;
    C= a+b;

    Paragraph.SetText("Paragraph1", "C");

    I need to show the value of "C" in the paragraph

    regards

  • #2
    Code:
    Paragraph.SetText("Paragraph1", tostring(C));
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment


    • #3
      thanks a lot Master

      Comment


      • #4
        You can use the tostring option also you can contact it to a already created string I find works, so if you already has something like "Value is:"..C in most cases it will convert C to a string for you, this is what I have found anyway It might not always be the case, but worth a try when your learning AMS
        BunnyHop CDD Obscurer Download No Longer Supported
        Plugins or Sources MokoX

        Comment


        • #5
          Originally posted by kingzooly View Post
          You can use the tostring option also you can contact it to a already created string I find works, so if you already has something like "Value is:"..C in most cases it will convert C to a string for you, this is what I have found anyway It might not always be the case, but worth a try when your learning AMS
          Yes, but that (for example) does not work with booleans. Using tostring() for consistency is, in my opinion, best practise.
          Bas Groothedde
          Imagine Programming :: Blog

          AMS8 Plugins
          IMXLH Compiler

          Comment


          • #6
            Originally posted by Imagine Programming View Post

            Yes, but that (for example) does not work with booleans. Using tostring() for consistency is, in my opinion, best practise.
            Nope your 100% right there I forgot about booleans I had a feeling there was a type that wouldn't convert without tostring
            BunnyHop CDD Obscurer Download No Longer Supported
            Plugins or Sources MokoX

            Comment


            • #7
              Supper

              now it goes.

              Comment

              Working...
              X