>maybe someone has an idea
>
>i sometimes work with long strings (i.e. to build an sql or filter command) i then check that string if it is empty with "IsBlank(StrToCheck)".
>
>i gues there is a limitation in IsBlank() since it sometimes triggers the error "string to long to fit".
>
>is there a solution to this problem (i work with vfp6 sp5)?
>
>thanks for all your help in advance.
What my understanding, ISBLANK() is usually use against a field from a table. If you wish to detect if a string is empty, you may check LEN() function such as:
IF LEN(lcString)=0
ENDIF
or
IF LEN(ALLTRIM(lcString))=0
ENDIF
to be more bullet proof in case you are handling that string with spaces.