Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it in the Resource File
Message
From
29/12/1999 14:31:26
 
 
To
29/12/1999 09:41:16
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00309619
Message ID:
00310027
Views:
29
>>>I want to use the resource file to store window and browse positions, but I need a default position if they are not defined. How do I detect if the positions for a specific window or browse are stored so I can issue a browse last to get the fields and widths and positions.
>>
>>You'll be looking for PREFW/WINDBROW entries; I'm not sure what 'name' you have to match in the name field for browse parameters (probably table name or alias; you'll have to experiment unless someone is certain.) You can't search the FoxUser file while it's in use, since VFP opens it for exclusive access unless the flag is flagged as read-only by the OS, in which case, you can't update it anyway.
>
>Ed, Stephen,
>If you wish to share the Resource file for all application users, as Ed states, you must set it to RO. However, if you are in VFP and wish to see the resource file contents, YOU can view and edit the contents, assuming you have it opened RW.
>USE (SYS(2005)) AGAIN ALIAS MySource IN 0
>BROWSE LAST FOR ID = "WINDBROW"
>* Close the browse.
>BROWSE LAST FOR ID = "WINDBROW" AND NAME = "MYSOURCE"
>* This is the record you just added when you browsed above.
>

Just one thing - before this will work you need to SET RESOURCE OFF because VFP has the resource file opened for exclusive access...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform