Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing file variables to a function
Message
From
15/04/1999 13:39:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Passing file variables to a function
Miscellaneous
Thread ID:
00208655
Message ID:
00208655
Views:
67
Is it possible to pass a file variable to a function?

I am wanted to write a function that would allow the user of my class to specify the name of the fields in a table they want to modify. The function looks something like this:

PROCEDURE setDatabaseFieldnames
LPARAMETERS lcRecordID, lcFirstName, lcLastName, ... lnErrorCodes

THIS.record_field_name = lcRecordID
THIS.firstname_field_name = lcFirstName
. . .
THIS.errorcodes_field_name = lnErrorCodes
ENDPROC

When I then attempt to access the member variable record_field_name for the name of the record field in say a SCATTER command (i.e. SCATTER THIS.record_field_name ... TO laFieldInfo) I get an error like the following "RECORD_FIELD_NAME is not a file variable".

Any suggestions would be helpful.

Thanks,

Henry
Next
Reply
Map
View

Click here to load this message in the networking platform