Jump to content
WAPT Forum
Sign in to follow this  
Guest Youri

First number of characters of variable

Recommended Posts

Guest Youri

I have a website with an auto complete function. So I've created a list of index words and want to use these as natural as possible. So choose a index word and put it into a variable, then hit the service with the first two chars of that variable, then the first three, the first four, first five.

 

Problem is I cannot find a function to perform some sort of substring function. Is this not available?

 

For now I will create 5 different lists (one for each length) and use the $LRand method.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×