|
-
Jun 3rd, 2001, 05:28 PM
#6
Addicted Member
The problem is that the string returned from nget is still 50 characters long. Trim does not remove Null characters (or ASCII zeros)
Add this Function
Function TrimCString(sStr As String) As String
Dim i As Integer
i = InStr(sStr, Chr$(0))
Select Case i
Case 0
TrimCString = sStr
Case 1
TrimCString = QQ
Case Else
TrimCString = Left$(sStr, i - 1)
End Select
End Function
Note: QQ is constant for ""
Then do
Select Case TrimCString(TxtStr)
Last edited by stevess; Jun 3rd, 2001 at 05:32 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|