Page 4 of 8
Re: How do i call a procedure
Posted: Mon Aug 21, 2017 3:39 am
by Rathinagiri
Yes.
Usually I create separate prg files and functions for each window I am creating. This way I can organize the total project in a systematic manner.
Re: How do i call a procedure
Posted: Mon Aug 21, 2017 5:56 am
by ROBROS
Good Morning Mr Rathinagiri,
thanks for your reply, that is surely a better way to keep tracks of the program.
Best Regards.
Robert
Re: How do i call a procedure
Posted: Mon Aug 21, 2017 6:49 am
by serge_girard
Robert,
I use about the same manner as Rathi. But of course (if a rather small project) you can create one big PRG (with different windows names).
Serge
Re: How do i call a procedure
Posted: Mon Aug 21, 2017 7:34 am
by ROBROS
Serge,
my app is still a small one, but growing, so I will go the same way. The listed code is just an excerpt for playing around. The additional prg files have no main function, right?
And the prg-files must be noted in hbp?
Have a nice day.
Robert
Re: How do i call a procedure
Posted: Mon Aug 21, 2017 2:12 pm
by serge_girard
Right, twice!
Serge
Re: How do i call a procedure
Posted: Mon Aug 21, 2017 3:27 pm
by BeGeS
ROBROS wrote: ↑Mon Aug 21, 2017 7:34 am
my app is still a small one, but growing, so I will go the same way. The listed code is just an excerpt for playing around. The additional prg files have no main function, right?
And the prg-files must be noted in hbp?
Rob, this is so because it is not several autonomous programs that come together to form a larger one. It is a large program that is chopped for the convenience of the programmer.
The size and content of the pieces does not matter, and of course none of those pieces is usually an application in itself.
Regarding the .hbp file, it is not necessary: you can type in the command line the names of the pieces one after another every time you compile...
I recommend creating a .hbp file.

Re: How do i call a procedure
Posted: Mon Aug 21, 2017 4:05 pm
by ROBROS
serge_girard wrote: ↑Mon Aug 21, 2017 2:12 pm
Right, twice!
Serge
Now some things get clearer concerning the windows in HMG, dBase was easier to handle, you always had one window, but HMG is simply the state of the art. Please keep in mind, that I am not a professional programmer.
Robert
Re: How do i call a procedure
Posted: Mon Aug 21, 2017 4:23 pm
by ROBROS
BeGeS wrote: ↑Mon Aug 21, 2017 3:27 pm
ROBROS wrote: ↑Mon Aug 21, 2017 7:34 am
my app is still a small one, but growing, so I will go the same way. The listed code is just an excerpt for playing around. The additional prg files have no main function, right?
And the prg-files must be noted in hbp?
Regarding the .hbp file, it is not necessary: you can type in the command line the names of the pieces one after another every time you compile...
I recommend creating a .hbp file.
Thank you for the advice, creating a project by IDE and building the .exe will do this for me, right?
Robert
Re: How do i call a procedure
Posted: Mon Aug 21, 2017 4:28 pm
by serge_girard
Right again!
More or less... Once you have a project you see 'Modules'. In the toolbar you see 'Project'--> New Module.
This will ask a (prg) name and will create an empty PRG file.
Serge
Re: How do i call a procedure
Posted: Mon Aug 21, 2017 5:42 pm
by BeGeS
ROBROS wrote: ↑Mon Aug 21, 2017 4:23 pm
Thank you for the advice, creating a project by IDE and building the .exe will do this for me, right?
Robert
Using IDE is a personal choice.
I'm too heterodox as programmer, so I do not even consider using IDE.
Bernardo