Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command Button group
Message
De
05/05/2005 09:57:32
 
 
À
05/05/2005 09:46:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Divers
Thread ID:
01011123
Message ID:
01011271
Vues:
15
Yes, I would do it this way:
IF !THISFORM.buttonset1.editmode
  THISFORM.text8.ENABLED = .T.
ELSE
  THISFORM.text8.ENABLED = .F.
ENDIF
buttoneset1 is the usual name for the command group of buttons that control add, save, delete and exit, etc. editmode is a property on that command group, that the parent code looks at to deturmine the setting for the form's objects.
HTH
>Hi Beth,
>
>> The easist way to do this is to go into the form.refresh method and put code to make a textbox.enabled set to .T.
>> But if you are trying to make an actual field in the table editable. I would ask why? The user should not be able to edit any fields, unless you are ready to be able to save that info.
>> If the field you are talking about is just a textbox for look up or such, it should not be enabled during edit mode, because it could move the pointer off the record in the table and you will not be able to do a good save on it.
>
>That's exactly what it is - a search box. It's not a field in the table. And you're right - it should only be enabled during browse mode and not in edit mode.
>
>I'm assuming everything else on my form is "enabled" in edit mode but not during browse mode. So I'd need to make this particular textbox have the opposite effect. This is done somehow in a form.refresh?
>
>Thanks!
>
>John
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform