Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Beta Versions
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Beta Versions This forum is the place to discuss issues regarding Basic4ppc beta versions.

Typed variables in event routines ?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-26-2010, 09:30 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default Typed variables in event routines ?

Will the event routines directly have typed variables ?
Like:
Sub frmMain_MouseDown (x As Number,y As Number)
Sub cbxMatrix_SelectionChanged (Index As Number, Value)

instead of
Sub frmMain_MouseDown (x, y)
Sub cbxMatrix_SelectionChanged (Index, Value)

I think that this would be intersting.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #2 (permalink)  
Old 02-27-2010, 07:44 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

This is a very good question. For now it will not work (actually it will only work in the IDE and it is a bug that it works there).

The main problem here is that the untyped version must be supported for backwards compatibility and there is a problem with supporting several sub signatures.
__________________
Basic4android documentation
Reply With Quote
  #3 (permalink)  
Old 02-27-2010, 09:37 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Thank you for the answer Erel.

I had added the variable types in the event routines in the 'Dynamic simulations' program but hadn't tested them yet.
Removed them now because the routines don't work.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Mouse event routines klaus Beta Versions 2 02-24-2010 08:34 PM
Typed variables corwin42 Basic4ppc Wishlist 0 12-03-2009 09:41 AM
Error Routines Smee Questions (Windows Mobile) 3 10-26-2009 01:10 PM
Typed variables: enumerations? mjcoon Basic4ppc Wishlist 1 04-25-2009 10:06 AM
Dim-ing variables colin9876 Questions (Windows Mobile) 8 11-17-2007 06:47 PM


All times are GMT. The time now is 02:35 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0