How do i call a procedure

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: How do i call a procedure

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
ROBROS
Posts: 256
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Location: D 83071 Stephanskirchen

Re: How do i call a procedure

Post 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
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: How do i call a procedure

Post 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
There's nothing you can do that can't be done...
ROBROS
Posts: 256
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Location: D 83071 Stephanskirchen

Re: How do i call a procedure

Post 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
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: How do i call a procedure

Post by serge_girard »

Right, twice!

Serge
There's nothing you can do that can't be done...
User avatar
BeGeS
Posts: 125
Joined: Fri Jul 14, 2017 10:45 am
DBs Used: DBF
Location: La Mancha, Spain

Re: How do i call a procedure

Post 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... :o :(

I recommend creating a .hbp file. ;)
I get by with a little help from my friends
ROBROS
Posts: 256
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Location: D 83071 Stephanskirchen

Re: How do i call a procedure

Post 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
ROBROS
Posts: 256
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Location: D 83071 Stephanskirchen

Re: How do i call a procedure

Post 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... :o :(

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
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: How do i call a procedure

Post 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
There's nothing you can do that can't be done...
User avatar
BeGeS
Posts: 125
Joined: Fri Jul 14, 2017 10:45 am
DBs Used: DBF
Location: La Mancha, Spain

Re: How do i call a procedure

Post 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
I get by with a little help from my friends
Post Reply