Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !

Mobile version of
the aldweb Site

Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]

Weather / Spam / www

Lyon Weather

aldweb against spam

To receive news about this website, consider subscribing to our Newsletter.
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News


   visitors online

What do you think of the new design of the aldweb Site?
Great !
So ugly...
forum.gifForum - iziBasic - Topic #1409

Forum - Forum
iziBasic - iziBasic

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 1409  Subroutines in diferents files?

18/05/2006 @ 01:11
by Adi Corrales


Hi everybody.... I going to start a "small" app (small, but it is going to be a big one in the future!) And I want to know if there is a way to have many subroutines in differentes .pdb files, or in diferents .ibas files In order to keep organize. I'm planning to do a wargames assistant with the option of include an AI in the future, so, by now, I want a turn recorder and a Unit recorder. I know I can do this in a simple file, but in a future, when this turn big and I include a map, the AI, and some other things I have in mind, I would like to keep every aspect of the program in a diferent file, in order to keep maintainability (What a word! is that correct?) easy to me, and in the way I can implement ideas in an easy way, and if it does not works, put out the project easily. In this way, I would like to maybe have a different form in each "file" (subroutine), for example, one form to control turns (and one file) One form to control units (and the second file), etc... is that possible?

Thanks for your help!
(and I'll be bother you all when I start coding... by now, I'm just planning the mechanics of the wargame....)
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
18/05/2006 @ 04:10
by bh77a



Yes, this should be possible with iziBasic's CHAIN statement. To see it in action, check out Aldweb's excellent example iB_Address (the 2 memos version) in the iziBasic archive at (iziBasicFull60|Examples|GUI Apps|iBAddress|2 Memos).

Hope that this is what you are looking for.

Write to bh77a   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2
18/05/2006 @ 15:26
by aldweb



Yes, the CHAIN statement is the right way to proceed. For example, ViziBasic itself (that you guys use) is quite a big application, with not less than 6 CHAINed modules.

iBAddress (2 CHAINed modules) and Numerus (3 CHAINed modules) are indeed good starting points to understand the way CHAINing modules works, since these 2 applications are provided with their source codes in the case of a ONE segment only or n segments coding. Compare the two, and you will get the trick of how to CHAIN modules of code.

Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
Forum Topic  Forum 

^ Top ^