baan_fun
14th May 2004, 13:13
Hi,

I'm facing the following task. In the Item Configurator , Maintain Item Variants, when an inserted option is maintained for a feature I generate a message is the input is not desired.

The message is quite long. The users asked me to display the message on more lines to be easier to be read (I mean to split the content o nmore lines).

In a normal Baan script I can do this as :

message("Line 1 of message" & chr$(13) & chr$(10) & "Line 2 of message", 1)

The message is nice displayed on 2 lines.

It seems that the PCF compilator doesn't know this chr$ fucntion and I have no ideea how this could be done.

Have anybody an ideea?

Thanks and regards,
baan_fun

Juergen
14th May 2004, 14:28
Hi baan_fun,

at the moment i have no better solution than that

example:
message =
"line1line1line1line1" &
" " & (string with 40 spaces)
"line2line2line2line2"

result is:
line1line1line1line1
line2line2line2line2

maybe someone other has a better solution?

Rgds,
Juergen

p.cole
14th May 2004, 14:29
use !message("text" & chr$(13) & chr$(10) & "line2") in the constraint itself.

Using ! as the first character allows you to insert any 4GL statement. Be careful here, you can do *anything* - and completely mess up your Baan system.

vahdani
14th May 2004, 23:59
for my two cents worth; I use \n for a line break:

message("this is line one\nand this is line two")