Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading and Writing to the Resource file.
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00982418
Message ID:
00982527
Views:
34
>>I have tried something like this, but using the SYS(2005) instead. It worked great in the IDE, but insisted on creating a new FoxUser in the current folder when ran as a EXE. Then, the return value of SYS(2005) would be returned as a empty string. Is there any thing different the SYS() method then the SET() method of getting the table name?
>>
>>Thnaks
>
>No.
>
>Do you have SET RESOURCE ON / SET RESOURCE TO foxuser.dbf and do you have foxuser.dbf in the EXE folder?
>
>I did a test in a project, it works if meet the following conditions?
>
>1. SET RESOURCE ON
>2. SET RESOURCE TO FOXUSER.DBF
>3. You have foxuser.dbf in the path the app is aware of .
>
Thanks for the help. I found my problem. The FoxUser file was not openning properly, do to the fact I was writing a record to it, and not updating the CHVAL field correctly. Once I add the code to preform a CHKSUM ( sys(2007) ) agaist the DATA field, the error went away.

Thanks for the pointers, it help me see the errors of my ways.
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform