>>Hi everybody,
>>
>>lcTitle = ""
>>lnLines = alines(laLines, m.lcTitle)
>>
>>lnLines = 1
>>
>>I would expect it to return 0. Anyway, once I found this out I put a special handling for empty cases.
>
>ALINES has flag parameter. Default flag is "Removes leading and trailing spaces from lines, or for Varbinary and Blob values, removes trailing zeroes (0) instead of spaces" not remove empty lines. If you want to remove empty lines:
>
>lcTitle = ""
>lnLines = alines(laLines, m.lcTitle,4)
>
Thanks, Borislav.
If it's not broken, fix it until it is.
My Blog