[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing arguments by form.show


Do not use New

If you use New you must supply the parent argument.


BruceS



On Sat, 5 Jul 2025, 20:20 Dag JNJ, <gambas@xxxxxxxxxxxx> wrote:

> Hi all,
>
> I have a call to a form called fOpt (Options), fOpt.Show
> Here I get the error message "missing arguments"
> I found out, the message appears, when I declare *"Public nFrame as New
> Frame"*
> I use the frames simply to define foreground and background colors for
> elements in another part of the program.
> I have several small frames on the form,one for foreground and one for
> background color, and when I click on one of them, it is the target for the
> color I select with the ColorButton1, like this
>
>
>
>
>
> *Public Sub VG_Offen_fra_MouseDown()   nFrame = Last End*
>
> But I can't, as long I get the error message on calling the for, fOpt.
> Do I do something wrong in declaring nrFame?
>
> Thankful for any help,
> regards Dag
>

References:
Missing arguments by form.showDag JNJ <gambas@xxxxxxxxxxxx>