Android Question How can i use MsgBox on Library ?

landrea2004

Member
Licensed User
Longtime User
Hi everyone, I've created a library with B4A with a function that controls the validity of a date.
If the date is wrong I should see a warning msgbox.
This library is called within a B4A program in Main.

The MsgBox does not appear ......
Where am I wrong? or can not you do what I'm trying to do?

Thank you
 

NJDude

Expert
Licensed User
Longtime User
A couple of things:

1- Show us the code, without it is hard to understand the problem.
2- If you are writing a B4A library better to have an Event that handles errors, that way the user could customize the error message.
 
Upvote 0

landrea2004

Member
Licensed User
Longtime User
Thanks NJDude,
I spend better.
I created a library with B4A where I put the common classes that I then use within the main project for example (strings control, date control, etc ...)

In the Date Control function I should also point out that the date is wrong with a msgbox.

I compiled this library and loaded it into the main project through the Library Manager.

Now in the main project i have entered a edittext where the user inserts a date and in the FocusChanged and EnterPressed event of that check I called up the function to check the date.
The function is ok, but should display the msgbox when the date is wrong, but this does not appear to me.

I hope I've been clearer.
Thank you
 
Upvote 0
Top