PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Text from multi-line edit box to database
Text from multi-line edit box to database
Iniciado por guest, 10,oct. 2016 14:30 - 4 respuestas
Publicado el 10,octubre 2016 - 14:30
Hello all,

Has anyone a (simple) solution to set each text line from a Multi-line edit box set seperate to a data file? So each text line is a new record in the database.

Thanks,
Sammy
[attachment 2192 00.png]
Publicado el 10,octubre 2016 - 16:09
what about:
FOR EACH STRING your_string OF muti_line_control SEPARATED BY CR
your_file.your_field=your_string
hadd(your_file)
END
Publicado el 10,octubre 2016 - 16:25
You can try this

FOR EACH STRING sSubstring OF EDT_Name SEPARATED BY CR
FILE.FIELD = sSubstring
Hadd(FILE)
END
Publicado el 10,octubre 2016 - 16:42
Great Luis!
This works fine.
Publicado el 11,octubre 2016 - 17:25
Glad it helped you! :)