Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Posts
    12

    Checkbox question

    I've got a screen (2nd screen in Wizard) I've setup with checkboxes, which refer to different FileTypes. The user is asked to check the boxes he wants to associate with my application.

    Checkboxes on the page - no problem -
    Then, I create SessionVariables based on each type (assuming that I can't refer to the checkboxes' properties directly, at the end of all the screens), and have this script, just before going to the next screen:
    if chkTxt then
    SessionVar.Set("%TextFile%", "True");
    end
    if chkRTF then
    SessionVar.Set("%RTFFile%", "True");
    end


    Here, I'm figuring I can use the variables to set the filetypes a the very end of the setup.

    Here's where I'm having problems with the syntax, on the last screen, after installation, I have a script that, based on the SessionVariables I've created, actually sets the file associations:
    if SessionVar.Get("%TxtFile")="True" then
    But that line gives me an error:
    'then' expected near '='


    How is this supposed to be structured?

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Try this:

    Code:
    if SessionVar.Get("%TxtFile")=="True" then
    a single = is for assigning a value to a variable.

    a double == is for conditional if statements

    Adam Kapilik

Similar Threads

  1. Math.RandomSeed() question
    By stickck in forum AutoPlay Media Studio 6.0
    Replies: 8
    Last Post: 06-09-2006, 09:42 AM
  2. FlashMX vs AMS5 Data Arrays question
    By Martin_SBT in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 01-19-2004, 09:05 AM
  3. Question on VB and AMS5
    By Martin_SBT in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 12-11-2003, 08:22 AM
  4. Need Assistance with Random Question Quiz
    By marc3515 in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 02-16-2003, 06:25 AM
  5. Default Checkbox state not being applied
    By Chris Wasley in forum Setup Factory 6.0
    Replies: 2
    Last Post: 01-27-2003, 03:12 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