On Thu, Aug 11, 2005 at 11:01:17AM +0200, Marc Weustink wrote:
> Alexander Todorov wrote:
> >>2.  Why can't multiple forms of the "same name" be created?
> >>    Delphi has no problems with this.  
> >
> >
> >In delphi the two forms are not with the exact same name. At work we
> >have an application with many forms that can be opened many times.
> >When TfMyForm is opened for the firms time its name is fMyForm
> >(suppose you named it this way in OI). The second time its opened
> >(e.g. obj := TfMyForm.Create) it has name something like fMyForm_1,
> >the third fMyForm_2 and so on.
> >I think when creating form dynamically Delphi automatically adds
> >numbers after the name to prevent errors. This is at least what i have
> >seen.
> 
> DUH.... I've never noticed this. I tried it with Delphi 6 and indeed, 
> the name is postfixed with _i
> 
> Think we need to implement that.

That would be quite helpful (for my application), and useful for others
(if not now, then in the future).

Thanks,

        Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL     | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25        | Eindhoven University of Technology
FAX:    +31 40 247 54 04        | PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to