General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2000 Server
>Does anybody know how I can programmatically chop characters off at the first space within a value. For example if the value is Morocco Tops then I want to see Morocco and if the value is Turkish Fabric then it should say Turkish.
>
>Any help would be greatly appreciated
The function at() do what you need.
Ex:
x = "My String"
y = at(" ", x)
z = substr(x,1, y - 1)
or
x = "My String"
z = substr(x, 1, at(" ", x) - 1)
Joaquim
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only