Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Errorlabel


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-30-2007, 08:37 PM
JJM JJM is offline
Knows the basics
 
Join Date: Apr 2007
Location: France
Posts: 80
Default Errorlabel

Hi,
I just bought Basic4PPC version 6.01 and I have an error in compilated program with Errorlabel.
When the program runs on device or on desktop the errorlabel catches the error but this same program when it's compilated the errorlabel has no function?
Why?
Thanks for your help.
Best regards

JJM
Reply With Quote
  #2 (permalink)  
Old 12-31-2007, 08:03 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

Can you post your code or send it to me: erel@basic4ppc.com
Reply With Quote
  #3 (permalink)  
Old 12-31-2007, 02:33 PM
Newbie
 
Join Date: Jun 2007
Location: Germany, 30 km south of Munich
Posts: 8
Default Errorlabel in v6.01

I had a similar error when I complied my application the first time with the new optimized compiler. The error was solved after I moved the jump address out of a nested structure (if ... else ...) to the end of the sub.
__________________
What would we do if computers don't waste our time ...
Reply With Quote
  #4 (permalink)  
Old 12-31-2007, 04:03 PM
JJM JJM is offline
Knows the basics
 
Join Date: Apr 2007
Location: France
Posts: 80
Default About Errorlabel

Hi,
It's a solution but a function existes in Basic4PPC so I would like to use it.
Thanks
Best wishes for new year.

JJ M
Reply With Quote
  #5 (permalink)  
Old 12-31-2007, 06:10 PM
Senior Member
 
Join Date: May 2007
Posts: 188
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

And form my experience with the new compiler - you cannot have the error label outside of the sub that declares it (the old compiler allows such jumps)
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #6 (permalink)  
Old 01-01-2008, 07:23 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

An optimized executable doesn't raise an error when the image file is missing.
It shows a message instead.
Therefore ErrorLabel will not catch this error.
You should use FileExist instead of ErrorLabel:
Code:
If FileExist("SomeImage") Then Image1.LoadPicture("SomeImage")
Reply With Quote
  #7 (permalink)  
Old 01-01-2008, 01:06 PM
JJM JJM is offline
Knows the basics
 
Join Date: Apr 2007
Location: France
Posts: 80
Default ErrorLabel

Hi,

Thank you all guys.

JJ M
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
Bug (?) in Errorlabel on device. JJM Bug Reports 4 05-27-2007 07:48 PM


All times are GMT. The time now is 05:41 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0