Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting value from a table opened in a different DS
Message
 
 
To
09/03/2010 17:56:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
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:
01453631
Views:
54
>>Hi everybody,
>>
>>In a form I call a method of the application object, that opens a cursor in a default DS. Is there a simple way of getting to this cursor's field without switching DS in code using SET DATASESSION command?
>>
>>Thanks in advance.
>
>If it is in default DS why would you switch? Or you are saying it wrong and current session is another DS? If so you need to switch the datasession or you can use the source.
>Cetin

No, In the form with private DS I call a method of the main application object, that opens cursor in Default DS. I need to access a value from 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 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