A
active
<VBFixedString(50),
System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.Unma
nagedType.ByValTStr, SizeConst:=50)> Public BusinessName As String
txtBusinessName.MaxLength = Len(ludtTmp.BusinessName)
===snip
txtBusinessName is a textbox
Tracking down a problem lead to the above. Maybe it didn't work in VB6 - I'm
not sure.
But now Len returns 0 not 50 as I would like.
I've looked around the doc but can find no way of getting the max length of
the fixed length string
Is it possible??
Cal
System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.Unma
nagedType.ByValTStr, SizeConst:=50)> Public BusinessName As String
txtBusinessName.MaxLength = Len(ludtTmp.BusinessName)
===snip
txtBusinessName is a textbox
Tracking down a problem lead to the above. Maybe it didn't work in VB6 - I'm
not sure.
But now Len returns 0 not 50 as I would like.
I've looked around the doc but can find no way of getting the max length of
the fixed length string
Is it possible??
Cal