How do i call a procedure

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

User avatar
Rathinagiri
Posts: 5148
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 124 times
Been thanked: 126 times
Contact:

Re: How do i call a procedure

Post by Rathinagiri » Mon Aug 21, 2017 3:39 am

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: 56
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Has thanked: 31 times
Been thanked: 1 time

Post by ROBROS » Mon Aug 21, 2017 5:56 am

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: 1803
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 260 times
Been thanked: 60 times
Contact:

Post by serge_girard » Mon Aug 21, 2017 6:49 am

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

ROBROS
Posts: 56
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Has thanked: 31 times
Been thanked: 1 time

Post by ROBROS » Mon Aug 21, 2017 7:34 am

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: 1803
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 260 times
Been thanked: 60 times
Contact:

Post by serge_girard » Mon Aug 21, 2017 2:12 pm

Right, twice!

Serge

User avatar
BeGeS
Posts: 81
Joined: Fri Jul 14, 2017 10:45 am
DBs Used: DBF
Location: La Mancha, Spain
Has thanked: 15 times
Been thanked: 13 times

Post by BeGeS » 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?
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: 56
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Has thanked: 31 times
Been thanked: 1 time

Post by ROBROS » Mon Aug 21, 2017 4:05 pm

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: 56
Joined: Thu May 25, 2017 6:30 pm
DBs Used: DBF
Has thanked: 31 times
Been thanked: 1 time

Post by ROBROS » Mon Aug 21, 2017 4:23 pm

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: 1803
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 260 times
Been thanked: 60 times
Contact:

Post by serge_girard » Mon Aug 21, 2017 4:28 pm

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

User avatar
BeGeS
Posts: 81
Joined: Fri Jul 14, 2017 10:45 am
DBs Used: DBF
Location: La Mancha, Spain
Has thanked: 15 times
Been thanked: 13 times

Post by BeGeS » Mon Aug 21, 2017 5:42 pm

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