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.

Redeclared variables bug (or not!)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-04-2010, 08:58 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default Redeclared variables bug (or not!)

This tiny program gives the expected variable redeclaration error when run in the IDE but the optimising compiler doesn't detect this and emits code that causes a type conversion error in csc.exe. This may or may not be considered a bug as most programs will be run in the IDE first but the error during compilation is unhelpfully different to that in the IDE.

Code:
Sub Globals
  
Dim d 
End Sub

Sub App_Start
  test
End Sub

Sub test
  
Dim d As Number
  d = 
23
End Sub
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #2 (permalink)  
Old 03-06-2010, 07:08 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thanks. Fixed.
__________________
Basic4android documentation
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
Three-level variables? N1c0_ds Basic4ppc Wishlist 1 03-09-2009 06:34 PM
program variables tremara1 Questions (Windows Mobile) 2 10-16-2008 08:52 AM
Environment Variables Zenerdiode Questions (Windows Mobile) 1 05-22-2008 04:36 PM
Dim-ing variables colin9876 Questions (Windows Mobile) 8 11-17-2007 06:47 PM
Structure variables Erel Code Samples & Tips 0 05-19-2007 11:36 AM


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


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