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

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

Basic4ppc Wishlist Missing any feature?

Boolean evaluation

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-27-2010, 10:39 AM
Newbie
 
Join Date: Oct 2010
Posts: 4
Default Boolean evaluation

I'd like to be able to do...
'bval is boolean
bval = (bval = false)
... as a quick way of flipping between true and false. It seems to work with other Basic implementations but not with Basic4ppc.
Reply With Quote
  #2 (permalink)  
Old 11-27-2010, 11:47 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

This looks very strange to me.
bval = (bval = false)

You should use
bval = Not(bval)

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #3 (permalink)  
Old 11-27-2010, 12:53 PM
Newbie
 
Join Date: Oct 2010
Posts: 4
Default

That never occcured to me! I'd always used bval=bval=true in VB without thinking about it. Your method is elegant and simple and I'm ashamed it never occured to me.

Delete one wishlist request!

Regards and thanks.
Reply With Quote
  #4 (permalink)  
Old 05-20-2011, 10:11 PM
Basic4ppc Veteran
 
Join Date: May 2011
Posts: 412
Default

I do

bval = not bval
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
Boolean variable type klaus Beta Versions 1 03-10-2010 06:27 PM
Boolean problem agraham Beta Versions 8 02-28-2010 05:42 PM
reverse boolean? RB Smissaert Questions (Windows Mobile) 5 03-31-2009 04:01 PM
A sample for arithmetical expression evaluation coldraymagic Share Your Creations 4 01-22-2009 06:58 AM
Sub name evaluation Cableguy Questions (Windows Mobile) 4 09-30-2008 09:52 AM


All times are GMT. The time now is 02:32 PM.


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