MrDontKnowNothing
Programmer
hi folks,
i use the function below within a query with a call like this:
select IIF(!EMPTY(mytable.thememo), memo2string(mytable.thememo,SPACE(255)) as "MEMO" from mytable
FUNCTION memo2string(memovar)
PRIVATE cErgebnis as String
cErgebnis = ''
FOR i=0 TO MEMLINES(memovar)
cErgebnis = cErgebnis + MLINE(memovar, i)
ENDFOR
RETURN cErgebnis
ENDFUNC
My Problem: it seems to work until i get an error like "to many characters". is there a limit in vfp, how long a string can be. and if so, what is the limit?
by the way: is there a cuter way to solve this kind of problem?
muchas gracias senores e senoritas
alex
i use the function below within a query with a call like this:
select IIF(!EMPTY(mytable.thememo), memo2string(mytable.thememo,SPACE(255)) as "MEMO" from mytable
FUNCTION memo2string(memovar)
PRIVATE cErgebnis as String
cErgebnis = ''
FOR i=0 TO MEMLINES(memovar)
cErgebnis = cErgebnis + MLINE(memovar, i)
ENDFOR
RETURN cErgebnis
ENDFUNC
My Problem: it seems to work until i get an error like "to many characters". is there a limit in vfp, how long a string can be. and if so, what is the limit?
by the way: is there a cuter way to solve this kind of problem?
muchas gracias senores e senoritas
alex