IF ISALPHA(Transform(lcCur)) OR ISALPHA(Transform(lcPrev)) then
...not sure what your code does there, but in any event you can use TRANSFORM() and not have to worry about the data type, it will always be converted into text.
>I need to test if a variable is numberic and if so convert it to character.
>
>The code I am currently using:
>IF ISALPHA(STR(lcCur)) OR ISALPHA(STR(lcPrev)) then
>
>The variable 'lcCur' and 'lcPrev' can be character or numeric. The following error occurs:
> Function argument value, type or count is invalid