Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
USE DBF() AGAIN not working outside Private form
Message
De
18/03/1999 11:20:44
 
 
À
18/03/1999 01:50:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00199080
Message ID:
00199247
Vues:
24
Hi Kenneth ---- When you open a form with a Public datasession from a Private one, the Public form shares the private DS. Therefore, in your case, consider making Form2 a Public datasession and it should be able to bind to any cusror or table created in Form1.

>
>Has anyone experienced this before? I've 2 forms, both Private DS. Form1 creates a temporary cursor by :-
>
>SELECT * FROM (cTable) INTO CURSOR cTemp NOFILTER
>DO Form2 WITH DBF('cTemp')
>
>Form1 calls Form2 with the ?.TMP name. Form2.Init fails to open the file.
>
>However :-
>
>SELECT * FROM (cTable) INTO CURSOR cTemp NOFILTER
>USE DBF('cTemp') IN 0 AGAIN SHARED ALIAS abc
>
>works within Form1
>
>TIA
>
>Kenneth
------------------------------------------------
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform