Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I get a cursor from another form?
Message
From
16/02/1999 07:01:31
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00187252
Message ID:
00187957
Views:
20
>>I created a form in which a cursor is made. I want to print the information from this cursor into a report, but I want to open this report from another
form (where some printoptions can be set.) But when I open the second form (from a button on the first form), the cursor is not 'visible' for this
(second) form.
>>How can I make a Cursor 'public?'
>>Thank you for your time.

>This only works for SQL views, but is something you may consider in the future. If you know the DataSessionID where the view is currently open, you
>can issue a USE MyView NoRequery DSID where DSID is the DataSessionID where the view is currently open. I use this on 1 of my
>LOCAL views, and it works fast. The VFP Help says this if for remote views, but it worked on one of my local views. This lets me
>maintain private data sessions.

Thank's for advice.
I do it now as Nigel told me: LPARAMETER lnSession, THISFORM.DataSEssionID = lnSession, and it works perfectly!
Christian Isberner
Software Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform