Advertisement
ramkesheoran

any2StrExample

Sep 30th, 2011
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XPP 0.54 KB | None | 0 0
  1. static void any2StrExample(Args _args)
  2. {
  3.     str myStr;
  4.     anytype a;
  5.     ;
  6.    
  7.     a = "Any to string";
  8.     myStr = any2Str(a);
  9.     Global::info(strFmt("%1 is output, from input of Any to string as a str value", myStr));
  10.  
  11.     a = NoYes::Yes;
  12.     myStr = any2Str(a);
  13.     Global::info(strFmt("%1 is output, from input of NoYes::Yes as an enumeration", myStr));
  14.  
  15.  
  16. }
  17. /****Infolog Display
  18. Message (09:08:46 am)
  19. Any to string is output, from input of Any to string as a str value
  20. 1 is output, from input of NoYes::Yes as an enumeration
  21. ****/
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement