pralash
22nd January 2018, 10:08
Hi,

I already know that to display our required error messages in DAL by using "Dal.set.info.messages" as follows....

dal.set.info.message("@%1s","Range between 1 to 100")

Here I using "@%1s" for display the string.... Here I don't understand that what do you mean by "@%1s".... By the way, I also want to know how to display a numeric as well as combination of numeric and string message...

Can you please tell me that what are different types of format specification for display the numeric, string and the combination of numeric and string with some example script....
Thanks in advance,
Regards,
Pralash

bdittmar
22nd January 2018, 14:07
Hello,

dal.set.error.message(), dal.set.warning.message(), dal.set.info.message()
Syntax:

function void dal.set.error.message (string mess.or.code [, void arg ...])function void dal.set.warning.message (string mess.or.code [, void arg ...])function void dal.set.info.message (string mess.or.code [, void arg ...])

Description


These functions add a message to the DAL message buffer of type MSG.ERROR, MSG.WARNING, or MSG.INFO.

They are short versions for function dal.set.message().


Arguments

string mess.or.code Specifies either the data dictionary code for the message or a literal string. In the latter case, the value of mess.or.code must start with the at sign [@]. Note that using a literal string makes the script language dependent.

[void arg ... ] The literal string or message specified with mess.or.code can contain format characters for parameter substitution. The values which must be substituted are specified in the 2nd, 3rd, ... arguments of the function. The number of these arguments is variable.

For details about formatting a string see the sprintf$().


Context

This function can be used in DAL script types.



Regards

pralash
23rd January 2018, 07:58
Thanks a lot for your information....
Regards,
Pralash