| To: | REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Conditional Compilation by Rb version |
| From: | Andrew Bush <andrew dot b at ihug dot co dot nz> |
| Date: | Tue, 01 Jan 2002 14:13:06 +1200 |
Hi Brad,
why simply define a boolean constant myRBVersionIsGreaterThanThree
<grin> ...or maybe somthing a little shorter.
Then you can use
#if myRBVersionIsGreaterThanThree then
msgbox str(image.depth)
#else
// some other stuff
#endif
Then you can toggle it for each compile type.
Yours cheerfully,
Andrew Bush
--
If you define cowardice as running away at the first sign of danger
screaming and tripping and begging for mercy then yes Mr. Brave man I guess
I'm a coward.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Checking for database access with realbasic, Andrew Bush |
|---|---|
| Previous by Thread: | Loop Control Structures (Was: Re: Files I don't want to see!), Emile Schwarz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |