Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Nov 21, 2017 1:02 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: IIF Statement?
PostPosted: Tue Apr 03, 2012 6:50 pm 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
Is there an equivalent method (obviously user generated) to instate the common vb IIF?

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
 Post subject: Re: IIF Statement?
PostPosted: Tue Apr 03, 2012 7:30 pm 
Offline
User avatar

Joined: Mon Apr 02, 2007 2:08 am
Posts: 1225
Location: San Francisco, CA, USA
There's no 1:1 equivalent that I know of. Reading the description on MSDN, it sounds like a thin wrapper around an XOr function.

RealBasic has the XOr operator as well as a number of other bitwise operations in the Bitwise class. A workalike function should be fairly easy to write with just Xor.

_________________
Boredom Software


Top
 Profile  
Reply with quote  
 Post subject: Re: IIF Statement?
PostPosted: Tue Apr 03, 2012 9:01 pm 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
charonn0 wrote:
There's no 1:1 equivalent that I know of. Reading the description on MSDN, it sounds like a thin wrapper around an XOr function.

RealBasic has the XOr operator as well as a number of other bitwise operations in the Bitwise class. A workalike function should be fairly easy to write with just Xor.



Thanks for the response :-) have figured out a work-around :-)

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group