where you are returning the string... where in the code are you calling RemoveExtention
if you have
int x = RemoveExtention(someString)
you will get that error since RemoveExtention is returning a string not an int. But I would think you would get it at the place it was called not in the function itself...
Actually doesnt StrSetCharAt return a string anyway so you would need to have location = StrSetCharAt(location, lenght-2, 0);
The manual isn't much help since StrSetCharAt was obsolete and I don't have a version previous to 2.71 to go back to.
if you have
int x = RemoveExtention(someString)
you will get that error since RemoveExtention is returning a string not an int. But I would think you would get it at the place it was called not in the function itself...
Actually doesnt StrSetCharAt return a string anyway so you would need to have location = StrSetCharAt(location, lenght-2, 0);
The manual isn't much help since StrSetCharAt was obsolete and I don't have a version previous to 2.71 to go back to.