Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Is there some way to pass a variable length string?


Message #1 by "Phil Perks" <philp@w...> on Thu, 17 Aug 2000 10:44:42
-----Original Message-----
From: Tyler Rothermund [mailto:tsr@s...]
Sent: 16 August 2000 17:10
To: 
Subject:

Is there some way to pass a variable length string?  I have a fields in the 
database that can hold up to 2000 characters, and since it rarely holds 
that much data it seems like a waist to pass fixed lenght string that are 
2000 characters long.

Is your technique for passing data still efficient when passing UDTs that 
are thousands of bytes, or is there another way I should be doing it?

Since my UDTs contain strings that are 2000 chars. long, am I going to run 
into a issue with fixed length strings having a 65,000 char limit, when 
storing collections into the Buffer?

When I use LenB( ) on my UDTs to find out how long the Buffer should be the 
length of any strings in the UDT are doubled.  Then when I declare the my 
Buffer string to be as long a LenB( ), the first item in my UDT is way off, 
while every thing else seems to be ok.  How ever when I use the Len ( ) 
function the, every thing seems to work ok.

What is going to happen if a Win95 client uses my objects?

Any help you can give me would be greatly appreciated.

Thanks
Tyler Rothermund


  Return to Index