Page 1 of 2
put "items" into next line in field
Posted: Wed Aug 01, 2012 4:30 am
by pidobearBUSsb9q
Hi
i am trying to put records into a particular field when the user click a button
but every time the user click a second time, the previous record is deleted and the new one is put in.
How to make the new records automatically place in the next line without overwriting the previous?
thanks in advance
cheers

Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 5:06 am
by shaosean
Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 5:12 am
by pidobearBUSsb9q
hi
thanks for the help
but is didnt work
the code put the next input beside the previous
example: bar and code
result: barcode
expected result:
bar
code
Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 7:25 am
by shaosean
Need to include a LF (linefeed) at the end of the string.. Yes, the LF in the code above is literally the letters LF (still replace TEXT with your text and FIELD with the name of your field)
Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 7:32 am
by pidobearBUSsb9q
shaosean wrote:
Need to include a LF (linefeed) at the end of the string.. Yes, the LF in the code above is literally the letters LF (still replace TEXT with your text and FIELD with the name of your field)
Thanks it working now
cheers

Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 7:41 am
by pidobearBUSsb9q
oh can you help me on how to remove the selected or hilited item in the field?
i am using scrolling list field
thanks so much for your help and time

Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 8:43 am
by shaosean
You set the
hilitedLine property.. I cannot remember if you set it to 0 (zero) or EMPTY but one of those will do it for you..
Code: Select all
set the hilitedLine of field "FIELD" to EMPTY
Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 9:03 am
by pidobearBUSsb9q
shaosean wrote:You set the
hilitedLine property.. I cannot remember if you set it to 0 (zero) or EMPTY but one of those will do it for you..
Code: Select all
set the hilitedLine of field "FIELD" to EMPTY
it not working.
there are no error but it wont delete
where can i set the property?
Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 9:12 am
by jmburnod
Hi pidobearBUSsb9q ,
Use hilitedlines instead hilitedline (one s at the end)
Code: Select all
set the hilitedLines of field "FIELD" to empty
Best regards
Jean-Marc
Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 9:15 am
by pidobearBUSsb9q
jmburnod wrote:Hi pidobearBUSsb9q ,
Use hilitedlines instead hilitedline (one s at the end)
Code: Select all
set the hilitedLines of field "FIELD" to empty
Best regards
Jean-Marc
hi jean-Marc
thank for your help
its not working too

Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 9:51 am
by jmburnod
Hi
its not working too
I use it all the times
I tested it now and its work for me
Do you have an error message ?
Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 10:02 am
by jmburnod
Hi pidobearBUSsb9q,
I read
there are no error but it wont delete
Do you want delete the hilitedlines or have no hilitedlines in your field ?
and hilitedline without "s" also work
Best regards
Jean-Marc
Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 10:09 am
by pidobearBUSsb9q
jmburnod wrote:Hi pidobearBUSsb9q,
I read
there are no error but it wont delete
Do you want delete the hilitedlines or have no hilitedlines in your field ?
and hilitedline without "s" also work
Best regards
Jean-Marc
sorry if it confuse you but i want to delete

Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 11:23 am
by Dixie
Hi...
To un-hilight the highlight of lines in a fld use...
Code: Select all
set the hilitedLines of fld 1 to none
To delete a highlighted line in a fld use...
Code: Select all
delete line (the hilitedLines of fld 1) of fld 1
be well
Dixie
Re: put "items" into next line in field
Posted: Wed Aug 01, 2012 12:18 pm
by jmburnod
sorry if it confuse you but i want to delete
Don't worry
Post confusionem memoria
Jean-Marc