in reply to Coding for two platforms in one Script

I suggest you read Conditional compile-time magic (RE: Checking to see if a particular Module is installed) and several other nodes in that thread. There are no "great" answers to this problem.

And, for the problem of not being able to type EVENTLOG_WARNING_TYPE, you simply need to instead type EVENTLOG_WARNING_TYPE() since the import will have to happen at run time.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: Coding for two platforms in one Script
by BoredByPolitics (Scribe) on Dec 06, 2001 at 17:01 UTC

    Thanks tye, that page has given me some food for thought. Your point about EVENTLOG_WARNING_TYPE() has finally sunk in too ;-)

    Many thanks to all who responded on this - it's most appreciated.

    Pete