Natasha
5th September 2002, 09:34
Hello all,
In what a way can I insert separators into newline in function 4GL message()?
klesch
5th September 2002, 09:39
message("First line" & chr$(10) & "Second line")
Natasha
5th September 2002, 10:01
Unfortunately, this doesn' t work
Both lines split into one with a pipe line (|) between them.
klesch
5th September 2002, 10:20
Oops, I see that now, too. I know that this used to work this way, because I used it several times while writing customizations for our customers. Maybe the version of BW client has to do something about it.
However, try using this one:
message("First line\nSecond line")
Natasha
5th September 2002, 10:32
It works!!!
Thank you very much for your efficiency
OmeLuuk
5th September 2002, 10:36
Note: the \n only works in bw, in ASCII you should have to fill the line with spaces to get a newline (at least that is the way I did it once)...
Natasha
6th August 2003, 09:38
I tried "\n" in BaaN ERP, but this doesn' t work
can I insert separators into newline in baan V?
NPRao
7th August 2003, 02:39
Natasha,
It works for me in BaaN-5.2
function main()
{
message("Hello \n World")
}
Natasha
7th August 2003, 08:34
I used function change.progress.indicator()
progress.number = "line1 \n line2"
change.progress.indicator(0, progress.number)
this doesn' t work :(
In what a way can I insert separators in this choice?
rupertb
7th August 2003, 09:26
I'm not on ERP but at a guess I'd say that the progress indicator has only been designed to be on one line on the screen?
Regards,
Rupert
Tomas Engberg
8th August 2003, 15:37
If you write something like change.progress.indicator(0, progress.number1, progress.number2) it should work see part of documentation below.
long change.progress.indicator( long percentage [, string message, ...] )
message This optional argument displays a string that provides information about the progress of the operation. For example, if the process involves multiple stages, you could add a short description of each stage to the progress indicator.If you include more than one message argument, each successive message is displayed below the previous one.
NPRao
11th August 2003, 20:58
As Tomas suggested you can use the "..." arguments to have multiple lines in the progress indicator -
Here is a sample code-
e = create.progress.indicator("Matching Pattern in Program Scripts...")
....
e = change.progress.indicator(0, "Package-"& ttadv230.cpac,
"Module-" & ttadv230.cmod,
"Script-" & ttadv230.cprs )
...
destroy.progress.indicator()