hpng98
18th October 2002, 12:06
Hi.

I want the message pop up when run certain report ( message is use for verification purpose).

When I display string value using message ,then it work fine.

eg: message("testing")
message("name : " & tiitm001.itm)

but how to display the date / long / numeric.........

Thanks alot.

jaapzwaan
18th October 2002, 12:16
Hi,

The function message accepts the same substitutions as http://www.baanboard.com/programmers_manual_baanerp_help_functions_formatting_io_sprintf does.
So do the following for longs:

long x

x=3

message("This is the value of x: %d", x)


This can all be found in the programmer's manual (also for dates/UTC) which is here online on BaanBoard:http://www.baanboard.com/programmers_manual_baanerp.

Regards,
Jaap Zwaan

mark_h
18th October 2002, 19:46
Here is a sample of a message I use:
message("%D(%02m/%02d/%02Y)",stop.date)


Good Luck!

Mark