Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clearing windows when activating a form
Message
De
04/12/1997 12:24:01
 
 
À
04/12/1997 12:17:10
Ray Spindler
Applied Management Corporation
Helena, Montana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00062421
Message ID:
00063849
Vues:
47
>>>How do I clear all the windows when activating a form? It appears that the last record that was active is currently residing in the textboxes,comboboxes, etc. Also how do I get my picture to appear next to my name? I'm sure this question has probably been asked a hundred times. Thanks for your patience!
>>>
>>>Ray
>>
>>Are you asking about clearing controls in form? If yes, then you should reset Control.Value="" (it's good to have custom method for this), assuming that you use unbound controls.
>
>I am not quite sure I understand? I seem to have the first record on file that appears in the textboxes when the form is initiated. What procedure do I need to place in the code to not have an active record appearing in the textboxes when the form initiates. It doesn't appear to be a property so I must have to have a procedure for it? Thank you for your help Ed!

There are two ways to arrange interface. The straightforward way assumes that you link Control.ControlSource to particular table.field (bound controls). Here, controls will always forced (by Thisform.Refresh of implicitly) to show active record values. Another way is to use unbound controls with empty ControlSources. Here, you write your own method to populate controls, and now it's up to you when to fire this method, i.e. you can abstain from firing when opening the form, and all controls will be empty. Also, you can have another method to clean up all controls to restore 'empty' interface.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform