Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP & VB command comparison?
Message
De
02/09/1998 14:42:12
 
 
À
02/09/1998 11:44:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00131782
Message ID:
00132481
Vues:
13
>You can use above syntax in VB without any doubt. As the first operand is string.
>
>If you use,
>
>ab = 'Hi Friends'
>cd = 12
>
>
>if you use
>ab + cd ----> No problem .
>ab & cd ----> No problem, Preferable for string concatenation.
>
>If by chance AB gets a numeric value (say 23) , then
>
>ab + cd ----> 25, not '1223'
>
>ab & cd ----> '1223' as you want.
>
>Very simple, if you think.


Thanks for the tips, Satya.

I take it that when numbers convert to strings they get an implicit
'alltrim'.

Peter
Peter Robinson ** Rodes Design ** Virginia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform