Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB's strings conversion
Message
From
28/05/2009 15:46:00
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01402498
Message ID:
01402539
Views:
40
>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform