HiLMAs reference
Back

String Handling

Next

SEARCH

SEARCH p,table,string[,start]

 

Description

This statement search one or more character(s) inside a string: if one of the characters in table is found in string, its first position is p; (table is a string of characters to search). If character is found, Hilmas variable $CSEARCH contain this character. If none character is found, p is 0.

 

Parameter specifications

Parameter Name Mode Type coding Remark
1 p Output Integer F or H Output position
2 table Input String C or X or const. Every char in this string is searched; max length 255 char.
3 string Input String C or X String in which to search; max length 255 char.
4 start Input Integer F or H or const. Start search inside 3rd parameter; first character has position 1

 

Examples

 


Back Start Next
LENGTH Top UPPER