Tom Verhoeff wrote:
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

Can you add a bug report for it on http://www.lazarus.freepascal.org/mantis/main_page.php?

That way, it won't be forgotten, and it is clear in what cases the error occurs.

Regards,
Vincent

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

Reply via email to