Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting a string to number in update query
Message
De
21/05/2003 10:39:51
 
 
À
21/05/2003 10:35:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00791060
Message ID:
00791065
Vues:
28
>How can i convert a string which is col2 in the update statement to a number size 10,2
>
>i am trying to do cint but it is not accepting.
>
>Could you please tell me.
>
>**************************Start************************
>for n = 1 to thisform.pageframe1.page3.list1.listcount
>
> col1 = thisform.pageframe1.page3.list1.listitem(n, 1)
> col2 = thisform.pageframe1.page3.list1.listitem(n, 2)
>
> update actions set sub_id = col2 where sub_key = col1
>
>endfor
>
>*************************END******************************
>
>Thank you.

Raj,
update actions set sub_id = val(col2) where sub_key = col1
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform