I need to know how to pull strings apart using asp. I come from a Visual Basic background but when I use the Visual Basic way, I get an error. Here is the script I am using:
Function Seperate(Field)
Field = Cstr(Field)
WhereSpace = InStr(Field, " "
Field = Left(Field, WhereSpace - 1)
Seperate = Cnum(Field)
End Function
The error tells me that LEFT is an invalid procedure call or argument. I might just be over looking something but I would appreciate the help.
Thanks
Function Seperate(Field)
Field = Cstr(Field)
WhereSpace = InStr(Field, " "
Field = Left(Field, WhereSpace - 1)
Seperate = Cnum(Field)
End Function
The error tells me that LEFT is an invalid procedure call or argument. I might just be over looking something but I would appreciate the help.
Thanks