what is Chr$(0)?

what is Chr$(0)?

Anonymous
Not applicable
2,986 Views
2 Replies
Message 1 of 3

what is Chr$(0)?

Anonymous
Not applicable
Hi all,
This was from a recent post,
InStr(strFileName, Chr$(0))

I'd think from the context that it was looking for a backslash, since it was
in reference to the file dialog box.
The help files mention the Chr function and ChrB and ChrW in that context
but not chr$.
The listing of character codes in the help files say Chr(0) is not supported
on windows platform.
So what is going on here anyway???
Thanks
Mark
0 Likes
2,987 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Chr(0) is the NULL character. It is used as a delimiter in strings by
API functions.

--
http://www.acadx.com
Win a free autographed copy of
"AutoCAD 2000 VBA Programmer's Reference"
by Joe Sutphin

"markP" wrote in message
news:375AD54F61F865840329880956C1FC88@in.WebX.maYIadrTaRb...
> Hi all,
> This was from a recent post,
> InStr(strFileName, Chr$(0))
0 Likes
Message 3 of 3

Anonymous
Not applicable
The functions that end in $ (chr$(), trim$(), mid$(),etc...) return a string
value as opposed to a variant. At least that's what I've been told.

--
Have a day 😐
Roi Ledford
"For lucky good wash, use Mr. Sparkle!"
---------------------------------
"markP" wrote in message
news:375AD54F61F865840329880956C1FC88@in.WebX.maYIadrTaRb...
> Hi all,
> This was from a recent post,
> InStr(strFileName, Chr$(0))
>
> I'd think from the context that it was looking for a backslash, since it
was
> in reference to the file dialog box.
> The help files mention the Chr function and ChrB and ChrW in that context
> but not chr$.
> The listing of character codes in the help files say Chr(0) is not
supported
> on windows platform.
> So what is going on here anyway???
> Thanks
> Mark
>
0 Likes