|
-
Jan 29th, 2001, 09:11 PM
#1
Thread Starter
New Member
Okay, I have tried both Replace and Trim without any luck. I am trying to dump information straight to a log file instead of a text box. When I do this the Trim/replace function does not work ie. it leaves the spaces and extra characters. This is the line I am trying to use the curvnresult variable has been used with the Registry API's to get the Version of NT then dump it into a log created during the program:
UpdateLogfile ("Current NT Version - " & Replace(curvnresult, " ", ""))
Returns:
Current NT Version - 4.0 0
I have tried Trim instead of Replace - same result, but if I dump this to a text box either one works!?! Should the Trim or Replace functions work when I dump to the file?? If not, does anyone have any ideas how to eliminate this. I have done it to a point by limiting the buffer size I create for the variable involved with the Version, but this works only because I know that it will never get to big. I am trying to pull the machine name out from the registry as well and get similar results(the extra characters. With that I will not know how big the name will be - 4 characters or 40. Any ideas?
Sometimes 
Sometimes 
Sometimes 
Always 
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
|