Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What's wrong with: 1

Status
Not open for further replies.

anneoctaaf

Programmer
Dec 15, 2003
104
NL
dw_gebruikers_invoeren.modify("discipline.enabled=FALSE")

Somehow it doesn't work...the textbox still shows...
 
Try
dw_gebruikers_invoeren.modify("discipline.enabled=0")
 
No, doesn't work, i get an error:

incorrect syntax column 20
 
oops...columns in a datawindow do not have enabled property
use protect property instead

ls_ret = dw_gebruikers_invoeren.modify("discipline.protect=1")
 
Well, i don't get no error no more, but it is still enabled...

when i use the same code for a textlabel, i do get an error, so protect is a property of a column, but somehow my PB doesn't know what to do..??
 
well this code works for me...
protect expresssion is used to make a column protected - ie., user cannot enter a value. It is not exactly equal to enabled [which greys out the control] but still achieves the same result
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top