OK so I'm trying to write a program in visual studio dot net 2003.
this program isn't too difficult and the isntructor says we should try and use the substring method to pull out specific sequences of characters.
for our program we are taking arabic numbers and turning them into roman numerals....
so for this program we want to evaluate the first character, and then assign a new variable whatever roman letter means the same...
according to the help info, and the prof you have a variable Variable1 in this example....we are supposed to be able to say the following...
variable1.substring(0,1)
the zero and one denote the start position and the number of characters to pull out of the sequence of letters/numbers....
well my problem is whenever I try to use the substring method it comes up and gives me an error telling me that the substring method does not exist within the program. According to the professor the substring method does not have to be called upon before use.
The only thing I'm not sure is the format the data should be in in order to use the substring method?
I've tried string (text) and double) formats with no luck...
Can anybody tell me what I'm doing wrong? I would greatly appreciate any info..;-)