Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting value from a table opened in a different DS
Message
From
10/03/2010 09:58:20
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01453599
Message ID:
01453726
Views:
57
naomi,
that cursor in the form. The current code uses
>
>set datasession to 1
>
>...
>
>then restores the datasession using saved transform of the set('datasessionID')
>
>set datasession to &lcOldDS
>
>I think it's not a very good code and looking for alternative methods.

If the cursor is opened anyhow on the app object,
methods to query it should be on the app object.

Or, to be more exact, they should be on the object creating the cursor.
For application services it often makes sense to open some tables only once
and not again in every form - but then the service should be intelligent to query this table.

my 0.02 EUR

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform