[lazarus] Shane's Class Self Error's
Cliff Baeseman
Cliff.Baeseman at Greenheck.Com
Mon May 10 13:33:24 EDT 1999
Yes this is probably why Tlist worked and TStringList did not...
Shane how about building a object sort of like
TSourceEdit = class
Caption: String
Editor: TEditor
Height: Integer
Width: Integer
Path: String
end
Using this in a standard list instead of a StringList....Just Grasping but
this looked something like what you were doing.
When you load the object set your pointer to the internal var fmEditor to
the created instance you should then be able to use self or the fmEditor in
the internal code..
Cliff
-----Original Message-----
From: Michael A. Hess [mailto:mhess at miraclec.com]
Sent: Monday, May 10, 1999 12:08 PM
To: lazarus at miraclec.com
Subject: Re: [lazarus] Shane's Class Self Error's
Shane Miller wrote:
>
> Seems like either SELF isn't passing or because I am holding the
> objects in a TStringList that the procedure calls are not working
> right. Still not sure if it's the compiler or me.
Uh-Oh. If you are using a TStringList then that is more than likly what
is causing your problem. TStringList which in turn uses AnsiStrings has
some really nasty bug buried down inside some place. Michael VC is
trying to find it and it is on the offical bug list. In my case I have
had it mess up the program so that standard for..do loops would not
work. I had to rewrite code to use repeat..until. If I had to make a
guess it is this that is causing your problem. As a test set the {$H+}
option at the top of your code and see if that doesn't help.
This is the same problem that makes TIniFiles fail at times.
--
==== Programming my first best destiny! ====
Michael A. Hess Miracle Concepts, Inc.
mhess at miraclec.com http://www.miraclec.com
_________________________________________________________________
To unsubscribe: mail lazarus-request at miraclec.com with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus
More information about the Lazarus
mailing list