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.

Can't get sequential single line "if" statements to work

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-28-2010, 02:13 PM
Newbie
 
Join Date: Oct 2010
Posts: 4
Default Can't get sequential single line "if" statements to work

(Warning: newby post!)
Apologies if this is already known but it appears to me that if you have several single line IF statements in sequence then only the first one is evaluated! The rest are skipped over. eg:

If A = B then ....
If D = E then ....
whatever ....

Only the first IF gets evaluated. The program then skips to the line following the last IF of the sequence. In the example above the second line doesn't get executed.

This is using the ide. Don't know if it works compiled or not.

Converting to multi-line IF statements gets round the problem.
I'm using v6.9.
Reply With Quote
  #2 (permalink)  
Old 10-28-2010, 02:59 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,714
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Are you sure that the lines are really skipped?
There is a known issue with the debugger which sometimes doesn't break in similar cases.
Reply With Quote
  #3 (permalink)  
Old 10-28-2010, 03:32 PM
Newbie
 
Join Date: Oct 2010
Posts: 4
Default

Quote:
Originally Posted by Erel View Post
Are you sure that the lines are really skipped?
There is a known issue with the debugger which sometimes doesn't break in similar cases.
Hi Erel. I've just been doing some more investigating and it seems to me that you're sort of right.

In fact it's just that if I single step through the code using F8 then it doesn't stop on any subsequent IF statement (after a previous IF) - so long as the IF evaluates to FALSE!

IE:
XX = 1
YY = 1
If XX = 2 Then XX = 1
'doesn't matter how this IF evaluates
If YY = 2 Then YY = 1 'WON'T stop here on single step

But:
XX = 1
YY = 1
If XX = 2 Then XX = 1
If YY = 1 Then YY = 1
'WILL stop here on single step

I Assume this is the bug you know about. Sorry for the false alarm.
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
Catching the "Shift", "right" & "left" keys linum Questions (Windows Mobile) 3 08-21-2009 01:22 PM
calling the device's "Programs" or "settings" screens karmba_a Questions (Windows Mobile) 3 03-15-2009 05:41 PM
Auslesen einer Tabelle in eine Textbox und löschen von "0,00-Ergebnissen" JOTHA German Forum 8 11-29-2008 08:50 AM
"AddEvent" and "buttonUp/buttonDown" Byak@ Questions (Windows Mobile) 12 09-10-2008 03:04 PM
calling the device's "Programs" or "settings" screens HarleyM Questions (Windows Mobile) 0 12-05-2007 02:59 AM


All times are GMT. The time now is 04:13 PM.


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