Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting value from a table opened in a different DS
Message
 
 
To
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:
01453730
Views:
34
>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

I agree, but the application and code is already written and I didn't want to mess much with the code - don't know what problems may arise if I change it.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform