How can I tell if my code is running inside a Console or desktop application?
문제
How can I tell whether my RealBasic code is running inside a Console or desktop application?
해결책
You can use this conditional sentence:
#if TargetHasGUI then
' It's running in a desktop app
#else
' It's running in a console app
#endif
제휴하지 않습니다 StackOverflow