Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create cursor in a particular work area
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00957814
Message ID:
00957817
Views:
14
This message has been marked as the solution to the initial question of the thread.
Try
CREATE CURSOR crs_at3_temp (fname c(1))
USE DBF("crs_at3_temp") AGAIN IN 3 ALIAS crs_at3
? SELECT("crs_at3")
USE IN crs_at3_temp
>
>I was wondering something... If I select a work area and open a table, the table is opened in that work area (duh)...
>
>
>SELECT 3
>USE TABLENAME.DBF
>? SELECT("tablename")
>
>
>returns a 3
>
>But if I do the following with a cursor ....
>
>
>SELECT 3
>CREATE CURSOR crs_at3 (fname c(1))
>? SELECT("crs_at3")
>
>
>...it opens it in work area 1.(i.e. the next available work area).
>
>I KNOW that the above is not good coding but this is a legacy app and I can't go back and change it. Is there a way to FORCE a cursor to open in a particular work area??
>
>Thanks for any ideas!!!
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform