[Gambas-user] Replace (Internal) Error Message

Hans Lehmann hans at gambas-buch.de
Tue May 23 13:26:43 CEST 2023


Hello.

When I use the following procedure:

Public Sub dcFlowername_Validate(Value As Variant)

      If IsNull(Value) Then
     '-- Message.Warning(Subst("&1<br>&2<b> &3 </b>&4", ("No flower name 
was entered!"), ("The data set is"), ("not"), ("saved!")))
     '-- An *internal* error message is displayed!
         Return
      Endif

End

the same meaningless error message "Invalid value" is always displayed.

Is there a way to replace this internal error message with a meaningful 
error message of my own?

With kind regards

Hans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230523/d8d44e24/attachment.htm>


More information about the User mailing list