augustwind
02-26-2007, 07:23 PM
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?
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?