>>>Where is the unload event of a form? the example below refers to it as I wish to pass back the results of a variable nameto a calling form.
>>>
>>
>>Double-click on your form (desing mode).
>>Open the listbox on upper right of the code window.
>>It is there near the bottom of the list.
>>Click on it.
>>
>>>
>>>2.In the code associated with the UnLoad event of the form, include a RETURN command with the return value.
>>> 3.In the program or method that runs the form, include the TO keyword in the DO FORM command.
>>>
>>>For example, if FindCustID is a modal form that returns a character value, the following line of code stores the return value to a variable named cCustID.
>>>
>>>DO FORM FindCustID TO cCustID
>>
>>This could be OK.
>>
>>:)
>
>Almost except I get the error in the trace window in FORM1 "variable asort not found" :(
Variable asort not found ?
It's look like you use a function name to designate a variable (ASORT is a VFP function) OR you try to use ASORT() with the wrong syntax.
If you don't want to keep the return value of a function you must add the '=' befor the call of the function like this:
=ASORT('arrayname')
HTH :)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca