Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorSource in DataEnvireonment
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00252319
Message ID:
00253006
Views:
11
>Hi Bruce.

>After studying the code it occurred to me that you are directly editing the CursorSource of the View/Table in the DataEnvireonment. All my tables are free tables, the subdirectory is in a memory variable, and I will know the names of the cursors in the data envireonment, why not just write code to directly modify the CursorSource just before calling the Form?

I misunderstood your question -- I assumed you wanted to change the CursorSource at runtime (a very common thing for folks who have multiple data sets, since it allows the user to choose the data set to work with) rather than at design time.

>I would like to have the CursorSource change at design time. Why would your code accomplish this objective? If it doesn't, can I write code to modify the SCX file directly to modify this? The subdirectory must be buried somewhere.

Yes, you could. I regularly "hack" SCX files by opening them as a table (USE MYFORM.SCX), browsing to find the desired record, and then changing the appropriate field. In your case, look for a record with CLASS = "cursor", then look in the PROPERTIES memo to find the exact cursor you want and change the CursorSource property.

>And how can the program detect whether it is running run-time or development? I can't find a function that tells the program this.

Check out the VERSION() function.

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform