Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make a cursor updatable
Message
De
06/08/2000 16:14:58
 
 
À
06/08/2000 15:10:38
Jimmy Ditta
Twin City Electronics
Monroe, Louisiane, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00401674
Message ID:
00401683
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform