Index
2002-01-08 16:36Gustavo Alfredo Schweitzer : I Cannot insert code on some methods!
2002-01-08 17:09Ed Leafe : Re: I Cannot insert code on some methods!
2002-01-08 17:36Gustavo Alfredo Schweitzer : Re: I Cannot insert code on some methods!
Back to top
I Cannot insert code on some methods!

Author: Gustavo Alfredo Schweitzer

Posted: 2002-01-08 16:36:51   Link

This happens to me all the time and I don't know the reason. Some methods of my business objects appear in the Properties Window with its second column in italics. When I dobleclick on it, of course nothing happens.

One of the problems this causes to me is that I can't insert code in the ONNEW method to fill some fields with default values.

I'm sure I'm missing some basic knoledge here...

Somebody help me please.

Gustavo A. Schweitzer

Strategic Business Technology, Inc.

Miami FL, USA

©2002 Gustavo Alfredo Schweitzer
Back to top
Re: I Cannot insert code on some methods!

Author: Ed Leafe

Posted: 2002-01-08 17:09:23   Link

<i><font color="#663300">This happens to me all the time and I don't know the reason. Some methods of my business objects appear in the Properties Window with its second column in italics. When I dobleclick on it, of course nothing happens.

One of the problems this causes to me is that I can't insert code in the ONNEW method to fill some fields with default values.</font></i>

This sounds like you are trying to edit the bizobj instance on the form, and not the class itself. Since the methods in Italic are marked as Protected, you cannot edit their instance code. Close the form, and open up the bizobj in the aBizness classlib. Make your OnNew() changes there.

<font color="#cc0000"> ___/

/

__/

/

____/</font>

Ed Leafe

©2002 Ed Leafe
Back to top
Re: I Cannot insert code on some methods!

Author: Gustavo Alfredo Schweitzer

Posted: 2002-01-08 17:36:03   Link

Gotcha!

Thank you Ed!

<i><font color="#663300"><i><font color="#663300">This happens to me all the time and I don't know the reason. Some methods of my business objects appear in the Properties Window with its second column in italics. When I dobleclick on it, of course nothing happens.

One of the problems this causes to me is that I can't insert code in the ONNEW method to fill some fields with default values.</font></i>

This sounds like you are trying to edit the bizobj instance on the form, and not the class itself. Since the methods in Italic are marked as Protected, you cannot edit their instance code. Close the form, and open up the bizobj in the aBizness classlib. Make your OnNew() changes there.

</font></i>

Gustavo A. Schweitzer

Strategic Business Technology, Inc.

Miami FL, USA

©2002 Gustavo Alfredo Schweitzer