
Passing fixed length string to API and is returning nulls in string
often the api will tell you the length of the string, if not you can just
use the instr function to search for the first chr$(0), then use Left$ to
trim the string.
--
Bill McCarthy, MVP VB
Total Environment
www.TotalEnviro.com/PlatformVB
Quote:
> Hello all,
> I'm passing a 250 byte fixed length string to a C API call. After
> returning from the call, the string contains my text ....plus extra
> junk on the end of the string? are they nulls? how can I truncated this
> string to only the text i want .
> Thanks in advance,
> Brad Cooper
> Sent via Deja.com http://www.deja.com/
> Before you buy.