Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List 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, 10:13 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 3,355
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, 01:18 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,533
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
__________________
Basic4ppc reference list
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 On
Pingbacks are On
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 03:44 PM
Event difference between IDE and optimised agraham Beta Versions 5 08-30-2008 01:43 PM
What's The Difference? Louis Chit Chat 1 03-08-2008 08:38 AM
Formsize no difference PC/PPC tvrman Questions & Help Needed 2 10-06-2007 05:04 PM
Difference Between Two Dates dvanwig Questions & Help Needed 7 08-02-2007 04:29 AM


All times are GMT. The time now is 08:13 AM.


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