on 05-22-2010 6:43 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try
oEdit.String
or
oEdit.Value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.