General information
Category:
Forms & Form designer
>>>>>>>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.
You need to set txtbutt (command group) property txtbutt.usercontrolmode = .t. ,
if you are using command group in quick form.
Ed
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only