KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Gosub?

 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Schalk
KiXforms Novice
KiXforms Novice


Joined: 31 Oct 2003
Posts: 2

PostPosted: Fri Oct 31, 2003 6:07 am    Post subject: Gosub? Reply with quote

Is it possible to use the Gosub / Return subroutines within kixforms? Question
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Fri Oct 31, 2003 7:05 am    Post subject: Reply with quote

Should be possible to apply 'gosub' events but better practice is still the udf (see function / endfunction).

Please elaborate

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Schalk
KiXforms Novice
KiXforms Novice


Joined: 31 Oct 2003
Posts: 2

PostPosted: Fri Oct 31, 2003 7:37 am    Post subject: Reply with quote

Me stupid!! Had the subroutine outside my funcion loop. Embarassed

Tx
Anyways
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Fri Oct 31, 2003 7:42 am    Post subject: Reply with quote

Ummm ... that is where it belongs Confused

Maybe we can give you some tips and hints if you post what you have Wink

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Sealeopard
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 436
Location: Boston, MA

PostPosted: Fri Oct 31, 2003 1:25 pm    Post subject: Reply with quote

In general I'd forgo ANY GOSUB/RETURN in favor of FUNCTION/ENDFUNCTION as it adds much more flexibility to your scripts. Additionally, you should follow the UDF Design Guide ( http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=10;t=000078 ) as appropriate when writing functions
_________________
Jens

'There are two kinds of vessels, submarines and targets.'
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group