Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
USE DBF() AGAIN not working outside Private form
Message
From
18/03/1999 11:20:44
 
 
To
18/03/1999 01:50:40
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00199080
Message ID:
00199247
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform