Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DblClick needs help
Message
De
06/04/1998 08:46:06
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00089217
Message ID:
00089745
Vues:
34
>>>>
>
>
>This code is in the valid event of the combo box
>>>
>>>Thisform.Combo1.DblClick
>>>COPY TO ARRAY invarray FIELDS invoices.workordern NEXT 1
>>>
>>>USE \INVOICES
>>>
>>>DO FORM \BROINVPAGE.SCX
>>>
>>>this works fine until I leave the broinvpage(pageframe) once closed
>>>and return to menu vfp crashes.
>>>
>>>Thanks
>>>
>>>
>>>>vfp 3.0 in win 95
>>>>>
>>>>>I have a combo box used for browsing that when you dblclick on
>>>>>a record needs to automatically run a pageframe to display the
>>>>>record.
>>>>>
>>>>>I have place a dblclick event in the valid event of the combo
>>>>>box, however when you close the pageframe, it would close the
>>>>>combo box form and crash vfp.
>>>>>
>>>>>I did not perform any release of the combo box, since I discovered
>>>>>that when the pageframe closed so did the combo box.
>>>>>
>>>>>Should I use a different method to accomplish the dblclick?
>>>>>Or is there something I can add to this code to keep it
>>>>>from crashing vfp?
>>>>>
>>>>>Thanks and have a great day!
>>>>Rebecca,
>>>>Could you elaborate more ? Could you paste valid and dblclick codes of combo (or is it a listbox) ?
>>>>Cetin
>>Rebecca,
>>Currently talking about this on forum. Could you give more details.
>>-Does form have a DE. If so private ?
>>-Are you using invoice again ?
>>Cetin
>
>yes both forms have de and it's exclusive invoice does get used again but
>it released and run again when needed.
Rebecca,
Move the code to lostfocus event so valid can finish. What does dblclick do ? To set a value in combo and force rec pointer move to related rec ? Instead set combo rowsourcetype to sql, rowsource to "select * from invoices into cursor temp". Bound return value of PK (invoices.workordern ?). Then call your BROINVPAGE with that value. Avoid reuse of invoice and set form.DEs as private.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform