|
-
Sep 21st, 2010, 02:47 PM
#17
Re: Alternatives for the old functions
I kind of doubt that it really worked that way even in VB6. The code worked, but I would be surprised if they just inserted into an existing string. More likely, there was a bit more work behind the scenes that resulted in a new string that included the changes. So you can probably perform the same action, you just can't do it in a single line of the same nature. The line would look worse, something like:
SomeString = SomeString.Substring(0,1) & "zykx" & SomeString.Substring(1)
or somewhat different, depending on what that old Mid was actually accomplishing.
My usual boring signature: Nothing
 
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
|