Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Just wondering why - Moverlist box
Message
De
04/05/2001 10:34:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00503455
Message ID:
00503495
Vues:
22
Sergy

Thanks ever so much - "form two" was not modal. When I changed it to modal, it worked fine.

I hate to admit it but,I have using VFP since it came out and never knew that. It also explains a problem I had several years ago which I fixed with a work-around.

UT is great - everyone should become a member. It pays for itself time and again.

Gaylen

>If form two isn't modal than the code in a command click method continue to execute after do form.
>
>>I have a form(form one) which calls a second form(form 2) that has a moverlist box using the moverlist box located in the gallery.
>>
>>The last six lines of code a command click method on the first form look as follows.
>>
>>If thisform.xxxx = 1
>> report form yyyy preview
>>else
>> do form two && this one contain the moverlist box
>>endif
>>close data
>>
>>
>>If form two code is invoked, Form two opens. The first thing "form two" requires is to select items from a moverlist box. In the load method of "form two", I open several table. Somehow while selecting items in the moverlist box the tables are closed and the program bombs. It seems the "close data"
>>command in "form one" is the culprit. If I comment out the "close data" in the click event of "form one", the tables remain open and the program works fine.
>>
>>How is it that the moverlist box activates the "close data" commands in "form one"? I know the fix is the remove the close data in form one, but I was wondering why this happens?
>>
>>Anyone have an explanation?
>>
>>
>>Thanks
>>Gaylen Jungling
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform