Hello HMG Users,
I have a form main with a StatusBar. when i try this command:
Main.StatusBar.Item(1) := " Text of status bar"
in my module main.prg, work fine. But when i try in other module it don´t work.
My form main is called in main.prg module.
When i try in another module, i get a message of error in line of command (Main.StatusBar.Item(1)) erro like "."
what´s going on?
Anybody help me?
PS: Sorry my bad english
Tank´s a lot, for your attention.
Status Bar
Moderator: Rathinagiri
Re: Status Bar
Did you try to declare window MAIN in other module:
Marek
before line that changes status line?DECLARE WINDOW MAIN
Marek
Re: Status Bar
Hello Marek,
i don´t understand your question
Regards,
i don´t understand your question
Regards,
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Status Bar
To refer a window in a different prg file, we have to use "declare window windowname" command before referring it. That is what Marek says.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Status Bar
Hi Paulo
In addition to DEFINE WINDOW, we have a DECLARE WINDOW statement:
According to HMG Documentation:
Saludos
--
Esgici
In addition to DEFINE WINDOW, we have a DECLARE WINDOW statement:
According to HMG Documentation:
DECLARE WINDOW : Declares a window name..
Syntax : DECLARE WINDOW <WindowName>
A window must be declared using this command, if you need to refer to it prior
its definition in code, or when you refer to it in a different .prg file from
the one it was defined using semi-oop syntax.
Saludos
--
Esgici
Viva INTERNATIONAL HMG
Re: Status Bar
i don´t try it. I´ll try today, in my house.
Thank very much Marek, rathinagiri, esgici.
you are amazing.
regards,
Thank very much Marek, rathinagiri, esgici.
you are amazing.
regards,
-
- Posts: 140
- Joined: Tue Mar 03, 2009 8:59 am
Re: Status Bar
Hi Marek, Rathinagiri & Esgici
Tx for providing an answer to one of my unasked questions
CCH
http://cch4clipper.blogspot.com
Tx for providing an answer to one of my unasked questions
CCH
http://cch4clipper.blogspot.com