cancel
Showing results for 
Search instead for 
Did you mean: 

Clear form items

Former Member
0 Kudos

L.S.,

I'm using SBO 2005 (pl 14) and i get weird results when clearing a UserDataSource in order to clear the values of the UI control.

Here is a part of the code:

Set oEdit = frm.Items("txtText").Specific

oEdit.DataBind.SetBound True, "", "txtText"

frm.DataSources.UserDataSources.Item(lngI).value = ""

The userdatasource is empty, but when i check

frm.Items("txtText").Specific.String is still contains old value.

Am I doing something wrong, or is this problem introduced with Patchlevel 14?

Your answer is appreciated!

Regards,

Michiel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Have you tried to update your textbox ?

frm.Items.Item("txtText").Update

Answers (0)