cancel
Showing results for 
Search instead for 
Did you mean: 

I want to set value to enabled false textbox

Former Member
0 Kudos

Dear Friends,

I want to set value to enabled false textbox how can I do this?

oForm.Items.Item("18").Specific.Value = str

Here 18 is Textbox and it set to enabled false and str is string but its not worked. It gave me error as Form Item is Not editable.

Thanks & Regard,

Swati

Accepted Solutions (1)

Accepted Solutions (1)

Nussi
Active Contributor
0 Kudos

Hi,

strange problem but a dirty workaround can be

oForm.Items.Item("18").Enabled = true

oForm.Items.Item("18").Specific.Value = str

oForm.Items.Item("18").Enabled = false

lg David

Former Member
0 Kudos

David has right, this works.

Don't forget to set to freeze your form, then will it not flicker...

oForm.Freeze(true)
oForm.Items.Item("18").Enabled = true
oForm.Items.Item("18").Specific.Value = str
oForm.Items.Item("18").Enabled = false
oForm.Freeze(false)

Hth

Regards Teun

Former Member
0 Kudos

Hi David ,

I know this is strenge problem but I did same think whatever u were sending me but this was not worked.Its gave me an error Form Item is not editable.

Thanks for ur solution. I solved this problem by Database.

Thanks

Former Member
0 Kudos

Hi ,

I know this is strenge problem but I did same think whatever u were sending me but this was not worked.Its gave me an error Form Item is not editable.

Thanks for ur solution. I solved this problem by Database.

Thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi..

Try this one

oForm.Items.Item("18").Specific.Value = str

After

oForm.Update()

Regards...

Billa 2007