Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make a form read only
Message
 
À
18/12/1997 11:07:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00066898
Message ID:
00066942
Vues:
40
>>>>>>I am looking for the setall syntax to make a form's textboxes read only. Thanks!
>>>>>
>>>>>Thisform.Setall("ReadOnly",.t.,"textbox")
>>>>
>>>>Than you but 1 prob. I created the form via quikform and the textboxes are actually labled [ab]po_nbr.click so not sure if they qualify as textboxes.
>>>
>>>Sorry, could you explain again what is "labled [ab]po_nbr.click"?
>>
>>po_nbr is just one of a bunch of so called textboxes on the form and was given as an example. The form like I said was created using quikform method. whenclicking on the the thing in edit mode, the object is referneced with the [ab] prefix, as you could see if you try it.
>
>The only thing you should worry about is Class from these textboxes were instanciated. You should use exactly the same class name in Setall method syntax.

Makes sense, so I put Thisform.Setall("ReadOnly",.t.,"textbox")
into the form's activate but I can still edit the textboxes.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform