Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Blanking form
Message
De
16/11/1998 11:39:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00157461
Message ID:
00157873
Vues:
17
>>>That'll do the whole form... I'll try modifying it for a single page... What I'm worried is that it's going to choke on numeric values.
>>>
>>>Thanks,
>>>
>>>-Michelle
>>>
>>Michelle,
>>
>>If your controls are bound, you can simply issue
>> BLANK
>>or
>> BLANK FIELDS [comma-delimited list of your fields here]
>>followed by a Refresh() (page or form). It will blank the underlying fields in the buffer. If your controls are unbound, then you should have some code to initialize them anyway, so you'd just have to call it.
>
>They're not bound, and I don't have anything to initialize them. They're just there. :)
>
>-Michelle
FOR EACH oControl IN Thisform.pageframe.pgMypage.Controls
 DO CASE
 CASE TYPE("oControl.Value")="C"
  oControl.Value=SPACE(0)
 CASE TYPE("oControl.Value")="L"
  oControl.Value=.F.
 CASE TYPE("oControl.Value")="N"
  oControl.Value=0
 CASE TYPE("oControl.Value")="D"
  oControl.Value={}
 ****
 ENDCASE
ENDFOR
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform