Ljuslykta Posted June 26, 2011 Posted June 26, 2011 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. Quote
Administrators PlausiblyDamp Posted June 26, 2011 Administrators Posted June 26, 2011 Wouldn't it just be easier to use the .Split method instead of trying to split it yourself? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Administrators PlausiblyDamp Posted June 26, 2011 Administrators Posted June 26, 2011 http://msdn.microsoft.com/en-us/library/b873y76a.aspx Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.