HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... IE 7 - using IF statement
IE 7 - using IF statement
  View type:
I am not sure if this is a general problem but I am trying to use the if statement (IF(Condition='txt01.Display='inline'') DISPLAY(object='txt02',Display='inline' etc)
in a module and keep getting the error:
Line: 3241
Char: 2
Error: Expected ";"
Code: 0

in the file Start.hta.
 
First, you are using single equal sign in conditional statement (instead of boolean double, i.e. == ). That's why you got an error: you are trying to set some undefined variable (see below) to "inline".
Second, you are using incorrect syntax: "$" sign must be the first character to define reference to object. Otherwise ti will be treated as plain text. In your case it is treated as undefined variable.
Third, "display" property is not listed in the object common properties, therefore it should NOT be used in any statements. All available common properties are listed in Help (Object - Common Properties): x, y, w, h - that's all. Some objects can have specific properties and they are listed in Help section that corresponds to particular object.
Therefore,
$txt01.x
$txt01.y
$txt01.w
$txt01.h
will be replaced by corresponding values, but
$txt01.display
will not. Moreover, you are at risk to get an error if you are trying to use undefined variables and properties in conditional statements.
 
 
Thanks, Nothing like compounding a number of problems!
Gutted - will have to try a different method of doing things.
Subject:
Message options
No additional options