Error: F Not Appropriate
With this script snippet:
Code: Select all
VBEval>ExtractTag3("FORM",0,0),formname1
VBEval>ExtractTag("INPUT",7,1),thetext1
VBEval>ExtractTag2("INPUT",7,1),thename1
VBEval>ExtractTag("INPUT",8,1),thetext2
VBEval>ExtractTag2("INPUT",8,1),thename2
If>%thetext1%=page.
Let>FrameName={""}
Let>FieldValue={"page"}
Let>FieldName={"%thename1%"}
Let>FormName={"%formname1%"}
Else
Let>FrameName={""}
Let>FieldValue={"page"}
Let>FieldName={"%thename2%"}
Let>FormName={"%formname1%"}
Endif
LibFunc>hIE,FormFill,r,%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0
If I switch FieldName and FormName variables around, I get the error: f Not Appropriate. The 'f' is referring to the FormName 'formname1' variables. The FormName is an f with a few numbers after it, i.e. f23.
If I remove the brackets and/or quotations, I get an Access Violation error.
From what I see through debug, the only errors I have are those 2.
Am I referring to the vars right? Is there a special way to refer to a string with letters and numbers, i.e. F4567, f234?
Here is a snippet from my log file:
12/13/2006 21:43:36:828 - START: If>Hide Help=page.
12/13/2006 21:43:36:828 - END: Else
12/13/2006 21:43:36:828 - START: Let>FrameName={""}
12/13/2006 21:43:36:828 - END: Let>FrameName={""}
12/13/2006 21:43:36:828 - START: Let>FieldValue={"page"}
12/13/2006 21:43:36:828 - END: Let>FieldValue={"page"}
12/13/2006 21:43:36:828 - START: Let>FieldName={F88}
12/13/2006 21:43:36:828 - END: Let>FieldName={F88}
12/13/2006 21:43:36:828 - START: Let>FormName={f4}
12/13/2006 21:43:36:828 - END: Let>FormName={f4}
12/13/2006 21:43:36:828 - START: Endif
12/13/2006 21:43:36:828 - END: Endif
12/13/2006 21:43:36:828 - START: LibFunc>hIE,FormFill,r,%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0
It does an Access Violation with the above.
Please help. Thanks in advance.
GB