Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Re Using Code in an event
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00008991
Message ID:
00009009
Vues:
37
>I will be more specific (sorry)
>
>I have a customer screen. there is a grid on the bottom of customers. When I double click anywhere on the grid I want the customer duble clicked to update the screen.
>22 Fields
>all the display objects are disabled and must be enabled (fields and lables)
>22 fields 22 lables
>66 lines of code
>plus comments
>copied over 17 "double click events" on the grid
>
>What happens when I have to change 17 events
>the potential for disaster it to high
>Plus I hate re writing code thats why I program in Foxpro
>
>Thanx

Hi, Chris. Now things become clearer. I would suggest you do following:
1. Use Doubleclick event for whole grid instead of goint to each column.
2. In this event make refreshment like
Mygrid.Refresh
MyForm.Refresh
and so on.

P.S. Surely Foxpro is visual development environment but it also offers and assumes great opportunities for right coding.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform