The article
PRB: ADD OBJECT Syntax Error from Browser Code Snippet mskb #
Q156506 explains why code generated by Class Browser may not run.
>Hi.
>
>I have a Test Classlib containing a Test Grid.
>My question is:
>
>1.
>------
>If I save and compile the source code generated by "View Class Code", Why do I get syntax errors like this: (See Code below)
>
>ADD OBJECT grdchtrans.column1.header1 AS header WITH Caption = "Header1", Name = "Header1"
>Error in line 23: Syntax error.
>
>ADD OBJECT grdchtrans.column1.text1 AS textbox WITH BorderStyle = 0, Margin = 0, ForeColor = RGB(0,0,0), BackColor = RGB(128,255,255), Name = "Text1"
>Error in line 31: Syntax error.
>
>
>2.
>------
>
>Why properties (i. e. Back and Fore Colors) and the methods DbldClick and Click don't work when I add my custom grid to a new form ?
>
<snip>
--sb--