General information
Category:
Forms & Form designer
Just wanted to say thanks, this works great !!!!!!
>>I have tried this from the valid and lostfocus methods of my customer field. It looks something like this:
>>
>>CASE ll_add
>> *-- User said yes to add customer
>> thisformset.form1.enabled = .f.
>> DO FORM addcust
>> thisformset.form1.enabled = .t.
>> *-- code here to load new info onto main screen
>>
>
>Jace,
>
>VFP is behaving exactly as it should. Your Customer form is non-modal, that means it does not keep focus until it is released, so once the form has astarted code execution continues after the line that ran the form.
>
>One way to solve this is to add a Parameter statement to the beginning of the customer form's Init that you can use to determine if the form should be modal or non-modal. In your code from the invopice pass the value of .T.
>
>DO FORM Customer WITH .T.
>
>In the INit of customer code like this;
>
> PARAMETERS plModal
> THISFORM.WindowType = IIF(plModal,1,0)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only