Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - Select SQL
Message
De
20/03/1997 18:25:09
 
 
À
20/03/1997 08:17:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00024860
Message ID:
00025097
Vues:
38
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform