Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50 - Select SQL
Message
From
21/03/1997 08:26:03
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00024860
Message ID:
00025169
Views:
40
>>>>How can I...
>>>>"SELECT * FROM table INTO CURSOR anycursor"
>>>>and make changes to anycursor that are reflectd
>>>>back to my table. Can you SELECT INTO A CURSOR VIEW?
>>>
>>>As far as I know, you can only change the source table if yu use a view. Queries and cursors are snapshots of the data. This means that you would need to use "select SQL view"
>>
>>Thanks Mike...
>>How would I (code wise) change this code:
>>"select * from table into cursor mycursor" to a "select view"
>>so my users can edit the cursor?
>
>CREATE SQL VIEW myview as select * from table
>
>Then create a form using myview in the data environment.
>If you dreate the view in the view designer, you can set it to allow SQL updates so that the user can edit the source data. If you do it in code you need to use SETCURSORPROP I think.
>Mike

Thanks Mike...So, what you are saying is, if I have "myview" created in
the view designer and then, in my program, I say:
CREATE SQL VIEW myview AS SELECT * FROM TABLE,

the view MYVIEW gets updated on the fly?
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform