C++Builder Firemonkey 0-based And 1-based String
#if defined(_WIN32) || defined(TARGET_OS_MAC)
#elif defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR) || defined(ANDROID)
#endif
// Macros used by Designer
#if defined(WIN32)
String Platform = “Windows”;
#elif defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR)
String Platform = “iPhone”;
#elif defined(TARGET_OS_MAC)
String Platform = “OS X”;
#elif defined(_ANDROID)
String Platform = “Android”;
#else
String Platform = “Unknown Platform!”;
#endif
Label1->Text = Platform + “ uses “ + IntToStr(Pos(Platform, Platform)) + “-based String.”;