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

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

Bug Reports Post about errors or bugs encountered.

Dim IDE/optimised compiled difference

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2009, 11:13 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 Dim IDE/optimised compiled difference

This works optimised compiled but fails in the IDE!

Code:
Sub Globals
    
'Declare the global variables here.
    Dim Type(x, y, z)data
End Sub


Sub MakeSprite(num)
    
Dim data(ArrayLen(data())) ' FAILS :(
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 07-03-2009, 02:18 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thanks Andy. For some reason the Dim handling code removed the declared variable before running the inner code. Will be fixed in the next update.
I'm sure that you know the workaround, but for other users :
Code:
Sub MakeSprite(num)
 len = ArrayLen(data())
  
Dim data(len)
End Sub
__________________
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
Debug suite for optimised compiled apps. agraham Additional Libraries 6 08-12-2009 04:44 PM
Event difference between IDE and optimised agraham Beta Versions 5 08-30-2008 02:43 PM
What's The Difference? Louis Chit Chat 1 03-08-2008 09:38 AM
Formsize no difference PC/PPC tvrman Questions (Windows Mobile) 2 10-06-2007 06:04 PM
Difference Between Two Dates dvanwig Questions (Windows Mobile) 7 08-02-2007 05:29 AM


All times are GMT. The time now is 03:55 AM.


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