Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it in the Resource File
Message
De
29/12/1999 09:41:16
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
 
À
28/12/1999 22:56:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00309619
Message ID:
00309813
Vues:
25
>>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.

Charlie
Charlie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform