Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何判断我的 RealBasic 代码是在控制台还是桌面应用程序中运行?
你可以使用这个条件句:
#if TargetHasGUI then ' It's running in a desktop app #else ' It's running in a console app #endif