Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. procedure TWebModule1.WebModule1WebActionItem1Action(Sender: TObject;
  2. Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
  3. begin
  4. if System.IsConsole then
  5. Response.Content := 'True'
  6. else
  7. Response.Content := 'False';
  8. end;
  9.  
  10. if System.IsConsole then
  11. // do this
  12. else
  13. // do that
  14.  
  15. if IsConsole then
  16. WriteLn('this')
  17. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement