rogelio_andre
18th June 2009, 18:33
How can I use on a form a text box area in BaaN V? I want to read a long string in a session (including enter character).
Thank you very much for your help
NPRao
18th June 2009, 19:05
I am not sure if Multi-line text window is supported in Baan-5 version, refer to the thread - Text editor window title (http://www.baanboard.com/baanboard/showthread.php?t=53029)
Alternatively, you can try this option - Different look for text in display mode (http://www.baanboard.com/baanboard/showthread.php?t=24108&highlight=text) to pop up a text window.
rogelio_andre
18th June 2009, 19:15
Thank you very much, my issue here is that I want use the field as an input (and I don't know the type of domain to use), I want to read with a 2D scanner a lot information like (qty|item):
1|123456
34|6548971
3|65465456
and parse (with field separator and line separator) the input by column and line to store the information in a BaaN table, the last use o this information is to make a transfer or inventory transfer.
rogelio_andre
18th June 2009, 19:31
NPRao, I saw your post in other forum, I didn't realized that you was the same answering in my question, you upload a file with a screen as example( session zmmig1100m000).
http://www.baanboard.com/baanboard/showthread.php?p=20018#poststop
dheerendra_gosw
18th June 2009, 20:58
Hi,
If you want to read the information from text file then see the code in attached file, it may help you.
Thx,
Dheerendra
rogelio_andre
18th June 2009, 21:57
thanks for your help, I finaly use this code that allow me to use a text box area with multimple lines in a form to input data from a 2D barcode scanner:
(attched is a word file with the result)
form.1:
init.form:
obj = object.draw.button(2,2,250,250,1,0)
functions:
function extern domain tcmcs.long object.draw.button(
domain tcmcs.long loc.xpos.o, | Posição Horizontal
domain tcmcs.long loc.ypos.o, | Posição Vertical
domain tcmcs.long loc.larg.o, | Largura
domain tcmcs.long loc.altu.o, | Altura
domain tcmcs.long loc.visi.o, | Visível
domain tcmcs.long loc.objpai.o) | Objeto Pai
{
long loc.mwin.o
long loc.butt.o
long loc.dumm.o
long loc.arq.id.o
long loc.buflen.o
long loc.icon_w.o
long loc.icon_h.o
long loc.pixmap.o
long loc.cmap_sz.o
long loc.colormap.o
long loc.valid.icon.o
long loc.cmap.o(256)
string loc.imap.o(1) based
string loc.bufr.o(1) based
if loc.objpai.o = 0 then
loc.mwin.o = current.mwindow()
else
loc.mwin.o = loc.objpai.o
endif
loc.butt.o = create.object(DsCfield, loc.mwin.o,
DsNwidth, loc.larg.o,
DsNheight, loc.altu.o,
DsNx, loc.xpos.o,
DsNy, loc.ypos.o,
DsNsetState, (loc.visi.o=0?DSUNMAP:DSMAP)
,DsNmultiLine, true
, DsNrows, 5
)
return(loc.butt.o)
}