V
vbMark
I'm tyring to extract the file name from a path entered in a text box by
doing this:
string sFile = File1.Value;
string[] sArray = sFile.Split(new char[] {'/'});
sFile = sArray.GetValue(sArray.GetUpperBound(0));
However, I get the following error:
Compiler Error Message: CS0029: Cannot implicitly convert type 'object' to
'string'
I can't figure out how to correct this. Can someone help me here?
Thanks!
doing this:
string sFile = File1.Value;
string[] sArray = sFile.Split(new char[] {'/'});
sFile = sArray.GetValue(sArray.GetUpperBound(0));
However, I get the following error:
Compiler Error Message: CS0029: Cannot implicitly convert type 'object' to
'string'
I can't figure out how to correct this. Can someone help me here?
Thanks!