** CallingForm.cmdAppend.Click() LOCAL loMessageForm, lcValue loMessageForm = NEWOBJECT("messageform", "messageform_lib") ** since it won't get returned, you'll have to grab it lcValue = loMessageForm.cRetVal IF NOT EMPTY(lcValue) AND VARTYPE(lcValue)="C" thisform.txtTarget.Value = lcValue ** do append code ELSE ** some other cute messagebox :) ** don't do append ENDIF ** messageform.cmdOK.Click() thisform.cRetVal = ALLTRIM(thisform.txtMessage.Value) thisform.Hide() ** messageform.cmdCancel.Click() thisform.cRetVal = ALLTRIM(thisform.txtMessage.Value) thisform.Hide()