cancel
Showing results for 
Search instead for 
Did you mean: 

Caption in EditText

Former Member
0 Kudos

Hi! I have this code here and want to put a caption but, unlike checkbox, the edit text does not has that property... Is there any way to do it?

oNewItem = form.Items.Add("Rental", SAPbouiCOM.BoFormItemTypes.it_EDIT);
            oNewItem.Left = oItem.Left;
            oNewItem.Width = oNewItem.Width;
            oNewItem.Top = oItem.Top * 19;
            oNewItem.Height = oItem.Height;
            
            oNewItem.FromPane = 5;
            oNewItem.ToPane = 5;
            oTextEdit = ((SAPbouiCOM.EditText)(oNewItem.Specific));

            oTextEdit.DataBind.SetBound(true, "ODLN", "U_nrOfDays");

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Please try this

oNewItem = form.Items.Add("Rental", SAPbouiCOM.BoFormItemTypes.it_Static); ' take static text item
            oNewItem.Left = oItem.Left;
            oNewItem.Width = oNewItem.Width;
            oNewItem.Top = oItem.Top * 19;
            oNewItem.Height = oItem.Height;
            
            oNewItem.FromPane = 5;
            oNewItem.ToPane = 5;
            osatictext = ((SAPbouiCOM.saticText)(oNewItem.Specific));
 
            oStatic.caption =  "Urcaption";

By

Firos

Answers (1)

Answers (1)

former_member458725
Active Participant
0 Kudos

Try


oEdit.String
or
oEdit.Value