Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB's strings conversion
Message
De
28/05/2009 15:46:00
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01402498
Message ID:
01402539
Vues:
41
>>>Nope. That is 21 HEX and it is 0x21 :-)
>>>if you look at the VB declaration they are defined as INTEGER not CHAR :-)
>>
>>Then in VB having
>>
vBackSpace = chr(21)
>>should raise an error, shouldn't it?
>
>I doubt it, but I never worked with VB.
>I think this is a valid expression:
>
>vBackSpace = chr$(21)
>
>but as I said, I am not sure.
>I saw it in Word macros but I am not sure if this is valid for VB :-)

Same here - all of my exposure to VB was through VBA (in Word, Excel and sometimes Access); I am uncertain but I seem to remember that, at some point, versions of functions with name$() were added without the $, so it looked less like classic Basics. Still, chr(21) would return a character, and if vBackSpace was declared as a string, woudln't it go against its declaration as an integer?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform