How can I tell if my code is running inside a Console or desktop application?

StackOverflow https://stackoverflow.com/questions/12050771

  •  27-06-2021
  •  | 
  •  

سؤال

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