Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT error when setting CURSORSETPROP
Message
De
13/05/2003 19:16:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00787810
Message ID:
00788000
Vues:
25
>Your right, aerror() is looking at old errors, however I ran it again and z = .T. also I modified my update string to following to get different results each time I looped:
>
>
>	    lnRes = CURSORSETPROP( "Buffering", 5, "lcCursor" )
>	    *** Update the display
>	    .counter = .counter + 1
>	    lcSql = " update UDFields set firstname = '"+ STR(.counter) +"' where UDFields.SSNo = '"+g+"'"
>    z = TABLEUPDATE(.t.,.t.,"lcCursor")
>		lnRes = .oCon.CloseConn(.nCon)
>
>and it still didn't update my table. I'll play around with it some more. Thanks
>
>Nick Patel

Nick,

The following line doesn't execute update, it assigns string to variable lcSql.
lcSql = " update UDFields set firstname = '"+ STR(.counter) +"' where UDFields.SSNo = '"+g+"'"
I believe you want to modify records in lcCursor.

Thanks,
Aleksey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform