Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading a Resource File from a Private DataSession?
Message
De
29/03/1999 17:46:02
 
 
À
29/03/1999 17:13:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00203180
Message ID:
00203216
Vues:
19
Tom ---

OK, so much for that. Try Ed's suggestion, then, which is to load oApp properties with the config/resource file values.

>John, I just tried to SET the DATASESSION before making the call
>and all the form controls blanked out.
>
>>Tom ---
>>
>>Have you tried SET DATASESSION before accessing the resource file and then SET DATASESSION back to what it was?
>>
>>
>>>I have a startup process that opens a resource file that is
>>>used to store the setting of various options such as where the
>>>data is stored. The resource file is one of the first things
>>>opened and stays open throughout the app in Datasessionid = 1.
>>>
>>>Later I'd like to be able to extract some data from the
>>>resource file from a form that has a private data session
>>>(datasessionid = 2).
>>>
>>>Of course, when I attempt to read from the resource file I get
>>>an Alias not found error. I know the reason is because the
>>>resource file is in datasession 1 and the calling form is in
>>>datasession 2.
>>>
>>>Besides, opening the resource file in the LOAD event of the
>>>form, what can I do to make this scenario work. What I change
>>>the datasession the form data goes black.
>>>
>>>Is there a way to get around this issue without opening the
>>>resource file in the LOAD of the form?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform