method of the month ...

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

method of the month ...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:57 pm

by Signwriter >> Thu, 8 Mar 2007 3:10:42 GMT

Integer.isOneOf

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: method of the month ...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:57 pm

by John Munro >> Thu, 8 Mar 2007 18:26:07 GMT

That method also exists on Binary, Boolean, Character, Date, Decimal, Real, String, Time and TimeStamp :)

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: method of the month ...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:57 pm

by Barry >> Thu, 8 Mar 2007 18:37:47 GMT

Seems somewhat pointless to have it on Boolean given that you have to provide a minimum of two parameters...

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: method of the month ...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:57 pm

by Murray Symon >> Mon, 12 Mar 2007 6:42:43 GMT

They don't have to be distininctly unique values, e.g. what about:

if b1.isOneOf(p1, p2, p3, p4) then ...

(where all variables/parameter involved are Booleans).

Murray.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 7 guests