BachlN
16th October 2003, 18:34
Hi I all,

I do some PCF programming. I want to use the standard message function in which you can use constrain validation message constant.

eg.
code

message = "00000000"

output

Messagebox with the content of the valid. mess.


QUESTION

Is it possible to use parameter substitution like in sprintf
without using the message() resp. mess() function

thanks nb

OmeLuuk
20th October 2003, 13:17
You have most probably already found your answers in the Library section of the board: http://www.baanboard.com/programmers_manual_baanerp_help_functions_message_handling_mess and http://www.baanboard.com/programmers_manual_baanerp_help_functions_message_handling_message (check the examples).

BachlN
20th October 2003, 14:10
I have indeed found these two functions.
But I would like to use the messages from the table (tipcf220) constraint validation messages and not from the data dictionary.
Do you know if there is a possiblity.

Thanks for your reply

nb

OmeLuuk
20th October 2003, 14:21
You can use the generic sting messagecode (tcgenstr) that contains %s only. Then you can fill the string with any other string ...

I have no idea how this could be done otherwise, I have no experience in programming constraints.