Re: Programatically generated Combo boxes

2024-06-17 Thread Eric Selje
Also would be easier to set these properties on the object before you add it: oComboBox.Top = nTop ComboBox.Left = nLeft oComboBox.Visible = .T. On Mon, Jun 17, 2024 at 3:19 PM Eric Selje wrote: > The 'name' is read only after the object is created. You have to name it > when you create it, lik

Re: Programatically generated Combo boxes

2024-06-17 Thread Eric Selje
The 'name' is read only after the object is created. You have to name it when you create it, like you had in the commented out code: toForm.AddObject("oComboBox", (cname)) Except don't put cName in (), because that will try to interpolate cName as a variable. And the parameters are reversed, it'

Programatically generated Combo boxes

2024-06-17 Thread Joe Yoder
I have been trying to come up with simple code to let me generate and configure ComboBoxes in code. I have succeeded in creating one combo and controlling its top and left properties by passing parameters but when I try to pass in a name things don't work. Here is the procedures code in a file na