|
|
Question : IsDefined problem
|
|
Q_1.B = Trim(Form.1.B)>set Q_1.B = ''>
This keeps throwing an error: Element 1.B is undefined in FORM
I thought this whas the purpose of IsDefined.
|
Answer : IsDefined problem
|
|
>>Well, that would be used to equate a literal. However, here's the error that your suggestion throws: >>Parameter 1 of function IsDefined, which is now "Form.1.A", must be a syntactically valid variable name.
radley is correct. It checks to see if the string passed as a parameter is defined as a variable. if you pass a variable to the function, it will check to see if the value that variable holds is a defined variable. You are getting that error because "form.1.b" is not a valid variable name. You cannot have a variable whose name starts with a number (among other rules for naming variables." ... thus, form.1.b gives member "b" which is a member of struct "1" (which is an invalid name) which is supposed to be a member of the form struct.
Again, no naming variables with the first character as a number! This will fix your problem.
|
|
|
|
|