dantheinfoman
Programmer
Hi All,
My first post. I have a .vcx form where if the user clicks the "Save As New" button, they need to have put a name for the new record in the Textbox. If the textbox is empty, it tells them that they need to put something in there and it should go straight to that textbox. What it does instead is nothing after the messagebox closes. In fact, you can't click in or type in the text box unless you click on the main exe program's screen and click back into the form. Then it's happy again!
my offending code below:
I had success with the wait window, but I'm curious why the messagebox is being such a jerk to me.
Yours,
Dan
My first post. I have a .vcx form where if the user clicks the "Save As New" button, they need to have put a name for the new record in the Textbox. If the textbox is empty, it tells them that they need to put something in there and it should go straight to that textbox. What it does instead is nothing after the messagebox closes. In fact, you can't click in or type in the text box unless you click on the main exe program's screen and click back into the form. Then it's happy again!
my offending code below:
Code:
WITH THISFORM
IF EMPTY(.TBMyRpt.Text) THEN
*WAIT WINDOW "Please choose a name for your report in the textbox!" nowait
MESSAGEBOX("Please choose a name for your report in the textbox!", 4096)
.Refresh
.tbmyRpt.SetFocus
RETURN
ENDIF
***blah blah other stuff here
*********
ENDWITH
I had success with the wait window, but I'm curious why the messagebox is being such a jerk to me.
Yours,
Dan