G
Guest
Hi,
Using C# I'm trying to use the substring method of a string variable but it
just generates an "error: 'variable.Substring' does not exist " exception -
how do I fix this ?
code example:
string creationDateStr = string.Empty;
string anotherStr = "";
creationDateStr = "some string or other";
anotherStr = creationDateStr.Substring(0,2);
This compiles but errors at run time.
Thanks,
Using C# I'm trying to use the substring method of a string variable but it
just generates an "error: 'variable.Substring' does not exist " exception -
how do I fix this ?
code example:
string creationDateStr = string.Empty;
string anotherStr = "";
creationDateStr = "some string or other";
anotherStr = creationDateStr.Substring(0,2);
This compiles but errors at run time.
Thanks,