I have searched and read every thread that I can find involving the Control Keyword. It is probable that my problem is so simple that it's not come up.
In all the programs I have written, I have never had more than 1 Menu form, usually called fMenu and a FormLib Object called flMenu. Using these as Literals [ie. flMenu.New1("fMenu",B4PObject(1))] has always worked both in Debug and Optimized Compile.
In the attached snippet, I have 3 menus with FormLib Objects flMenu1, flMenu2, flMenu3. When compiling I get the error Unknown Control Type. Using: [ Control(fml, Form).New1(fm,B4PObject(1)) ] then Generates an Unknown Property error. Thinking that I could not use the Control Keyword when initializing (.New1), I took this out of the loop and initialized all three menus using the literal [fl.Menu3.New.....] and this compiled just fine but... when it got to "TextBox", I got a Control type error!
Using: [Control(fml, TextBox).SetFontStyle(names(i),True,False,False,False) generates Unknown Property error.
Can someone please help.
Regards,
Ed Sharp