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
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top