VB/D3 : clsd3dynamic array and chr$(0) issue

VB/D3 : clsd3dynamic array and chr$(0) issue

Post by Richar » Sun, 29 Sep 2002 11:15:14



Hi!

Why am I unable to get a dynamic array object under D3 to hold a chr$(0)
character in Visual Basic?

I mean, I know it is a string-terminating character but VB allows chr$(0) in
strings, PICK allows an item to contain a chr$(0) yet a clsd3dynamicarray
object cannot contain a chr$(0)

Am I the only person to find this a problem?

Regards and thanks,

Richard

 
 
 

VB/D3 : clsd3dynamic array and chr$(0) issue

Post by K. Powic » Sun, 29 Sep 2002 13:30:56



Quote:> Hi!

> Why am I unable to get a dynamic array object under D3 to hold a chr$(0)
> character in Visual Basic?

What exactly do you mean? I have no problem putting chr$(0) into a clsD3dynarray.

Quote:> I mean, I know it is a string-terminating character but VB allows chr$(0) in
> strings

Well, you can terminate a string, but if you do something like

s = "hello" & chr$(0) & "world"

msgbox(s) will only print "hello".

So, I don't know what you mean by VB allows you to "put chr$(0) in strings"

Explain what you are trying to accomplish and maybe the problem will be more clear to
us.

K. Powick

PS Why did you post this same message under two different user ids??

 
 
 

1. clsd3dynamic array & chr$(0) issue

Hi!

Why am I unable to get a dynamic array object under D3 to hold a chr$(0)
character in Visual Basic?

I mean, I know it is a string-terminating character but VB allows
chr$(0) in
strings, PICK allows an item to contain a chr$(0) yet a
clsd3dynamicarray
object cannot contain a chr$(0)

Am I the only person to find this a problem?

Regards and thanks,

Richard

--
Posted via http://dbforums.com

2. Newbie Multiple table Select

3. Replacing CHR(10) or CHR(13) in field

4. Limitations of IN

5. Using Replace() to find Chr(10) and Chr(13) in a field

6. BLOB to LONG RAW?

7. CHR(10) and CHR(13)

8. Linked server tables

9. proble with chr(13)chr(10) in xml file

10. DBD::Pg - BYTEA - fails for range outside chr(0)-chr(127)

11. VB, D3/NT, D3 LINUX

12. VB 6.0 to VB.NET issue.

13. VB 4.0 to VB 5.0 issues