English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

strRemarks = ScmSplit(21).Substring(0, 9)

i have the following errors
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll

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

2007-02-11 13:02:01 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

dim strVar as string *10

strVar = text1.text

the *10 in the DIM statement makes the string variable be only ten characters. when you assign the textbox value, since it is only ten characters, it will only pick up the first ten characters. You can also use the LEFT(), RIGHT(), and MID() functions to return a particular part of the string.

This is using Visual BASIC 6, since you didn't specify a particular language.

2007-02-11 13:07:49 · answer #1 · answered by Richard H 7 · 0 0

if its c++ try this
make a for look
then store in a arry
create another for loop and
int a = aryy[i] ;
make loops so they increments

2007-02-11 21:09:10 · answer #2 · answered by Best Helper 4 · 0 0

fedest.com, questions and answers