What to use for gui when argc doesn't work?
mrbcx
Thu Dec 31 07:31:01 PST 2009
--- In BCX at yahoogroups.com, "brother.gabriel" <brgabriel at ...> wrote:
>
> ... I discovered that 1. command$(1) does not work in a gui;
> you can get command$, but that is all.
>
That's simply false.
The following code shows that COMMAND$(i) works perfectly well in a GUI application.
GUI "Test"
GLOBAL Form AS HWND
GLOBAL Edit AS HWND
GLOBAL Tmp$
GLOBAL i
SUB FormLoad
Form = BCX_FORM ("Test", 0, 0, 160, 100)
Edit = BCX_EDIT ("",Form,3333,5, 5, 158, 95)
WHILE COMMAND$(i) > ""
Tmp$ = Tmp$ + COMMAND$(i) + CRLF$
i++
WEND
BCX_SET_TEXT(Edit,Tmp$)
CENTER (Form)
SHOW (Form)
END SUB
BEGIN EVENTS
END EVENTS
More information about the BCX
mailing list