meta data for this page
F_FINDWORDINDEX
compatibility to FreeUDFLib, FreeUDFLibC, FreeUDFLib AvERP
Entrypoint findwordindex not compatible with UTF-8 - if needed please ask
Inputs/Outputs
Input CSTRING(32760) String INTEGER length of the string which should be examined Output INTEGER examines whether the position from Paramter 2 exists in the string. If the poition is found in the string, the result is the position itself, if not found the result is -1.
Syntax
Counting starts at 0. TestSQL SELECT 12 AS ISCORRECT, F_FINDWORDINDEX('Geburtstagsparty', 12) FROM RDB$DATABASE; SELECT -1 AS ISCORRECT, F_FINDWORDINDEX('Geburtstagsparty', 16) FROM RDB$DATABASE; SELECT NULL AS ISCORRECT, F_FINDWORDINDEX(NULL, NULL) FROM RDB$DATABASE;