Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi.

 

I've got a problem with SubString. I'm trying to send over a few variables, and i separate them with !. The code looks like this.

 

 

While Not returndata.Substring(A, 1) = "!"
TEST = TEST & returndata.Substring(A, 0)
MsgBox(TEST)
A = A + 1
End While

 

returndata is the string witch holds the variables.

A starts at 0, and then check after a ! in returndata.

 

When I run this, I get an error.

 

Index and length must refer to a location within the string.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...