Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Posts
    34

    Grin Need to display a content of a variable

    How can i display a content of a variable?

    i have a test (5 pages, 50 questions) any answer have assigned a variable, I need to display this information in other page. ¿How can I do that?

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    You would most probably want to display your variable in a label or paragraph object by using the the Label.SetText or Paragraph.SetText actions.

    If you want to display a number of variables together then you would concatentate (join) them for example if you had your individual answers as str_answer1, str_answer2, str_answer3 etc. etc. then to put them together you would use -

    Code:
    str_all_answers = str_answer1.."\r\n"..str_answer2.."\r\n"..str_answer3
    --and to display the concatenated string in a paragraph called Paragraph1
    Paragraph.SetText("Paragraph1", str_all_answers);
    the \r\n just adds a new line. You can do this anywhere in your project because variables are by default global, that is when you go from page to page they hold the same value until it is re-assigned.

  3. #3
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Quote Originally Posted by DericLanza View Post
    How can i display a content of a variable?

    i have a test (5 pages, 50 questions) any answer have assigned a variable, I need to display this information in other page. ¿How can I do that?
    You could always add the result to something like Page1Result on the On Close event, meaning everytime the user navigates to another page, it will globally set that meaning you can on page 6 or whatever the result page is, Concatentate all those together and put them together with something like.

    Code:
    Dialog.Message("Results from Pages 1-5", "Page 1: "..Page1Result.."\r\nPage 2: "..Page2Result.."\r\nPage 3: "..Page3Result.."\r\nPage 4: "..Page4Result.."\r\nPage 5: "..Page5Result);

  4. #4
    Join Date
    Mar 2008
    Posts
    34

    Thumbs up Thanks

    Thank you buddy, I already did and it works great.

Similar Threads

  1. Replies: 1
    Last Post: 03-02-2006, 08:04 AM
  2. Display variable on screen
    By Steve_K in forum Setup Factory 7.0
    Replies: 1
    Last Post: 01-13-2006, 02:16 PM
  3. DIsplay Variable
    By basehitter10 in forum AutoPlay Media Studio 5.0
    Replies: 8
    Last Post: 01-10-2005, 10:04 AM
  4. Best way to display CD content in AMS5
    By Martin_SBT in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 02-17-2004, 07:50 AM
  5. HOWTO: Display Conditional Text Based Upon a List Box Selection
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-15-2002, 10:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts