Pass the value if found or not to the form's init. Call the form with:
DO form myform NAME omyform WITH .F.
and then in the form's init put something like:
LPARAMETERS llfound
DODEFAULT()
this.show()
IF !llfound
=MESSAGEBOX('No matching record found.')
ENDIF
>I have a program which when executed runs a procedure which finds a record and then displays the information in a form. If no record is found it displays a messagebox stating no record. The problem is the messagebox shows up before the form is on the screen. How do I change this so that the form is displayed and then the messagebox?
>
>Many Thanks
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"