syntax error message
Richard Kreiss
rkreiss at gccconsulting.net
Wed Mar 10 09:47:44 PST 2010
For the following code where <L> is the last element of the array who to use when the listbox is displayed,
dim who(6) on line 10.
<L> can be from 3-6 in value
Who is filled based on a lookup and will contain an employee #s and names depending on the number of employees list on the looked up record.
Using the array allow me to display these names in a number of fields in the current file where this information may be used.
list_cm◄ If:
Then: sl=listbox(who,"1",L)
306 ------- - - - - - - - - - - - - - - - -
◄ If: @fd="3"
Then: 3=mid(who[sl],"1","4");sa=mid(who[sl],"6","30");RETURN
307 ------- - - - - - - - - - - - - - - - -
◄ If: @fd="4"
Then: 4=mid(who[sl],"1","4");wb=mid(who[sl],"6","30")
308 ------- - - - - - - - - - - - - - - - -
end_csm◄ If:
Then: RETURN
Following error message
*** A filePro Error Has Occurred ***
Line Number: 306
3=mid(who[sl],"1","4");sa=mid(who[sl],"6","30");RETURN
^
Process contains a syntax error at position indicated.
SL is cast in auto process as sl(1,.0)
Changed the braces to parentheses and still got the error.
Anyone see the error?
Richard Kreiss
GCC Consulting
rkreiss at gccconsulting.net
More information about the Filepro-list
mailing list