iIn( string val, string source ) return boolean - Syntax 2

This function is used to check if a string value is present or not in a specified string.

It allow to replace usual codes using the POS method and If statement that are often not easy to read by a more concise and readable syntax in conjonction with the usage of the iInFoundPos Library Property :

...
string ls_commandLine
string ls_value
...
if #.iIn( "/F", ls_commandLine ) then
    ls_value = mid( ls_commandLine, #.iInFoundPos + 2)
    ...
end if
...


See Also:
iIn - syntax 1
iInFoundPos




Last edited Jul 3, 2015 at 10:44 AM by domangep, version 6