Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make a cursor updatable
Message
From
06/08/2000 16:14:58
 
 
To
06/08/2000 15:10:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00401674
Message ID:
00401683
Views:
20
>I'm running a select that I need to be updatable. This is the code:
>
>
>SELECT inventory.stocknum AS stocknum;
>FROM Tomparco!inventory AS inv_this_trans;
>INTO CURSOR inv_this_trans;
>WHERE inv_this_trans.trans_id = trans_num; &&trans_num is a variable
>ORDER BY inv_this_trans.stocknum
>

>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>if I run the following, I get the error "cannot update the cursor"
>

Hi. You can't to make SQL SELECT cursor updatable..
Solution.
1) Use updatable Local view
2) SELECT .... ;
INTO TABLE c:\mytable.dbf
Select will create updatable vfp table. But you can't update base data source without custom code.
3) Wait for VFP7. I hear updatable cursors will standart feature for VFP7 ;)

Denis
Previous
Reply
Map
View

Click here to load this message in the networking platform