cgi or standalone

I there a compiler constant to determine if web application is running in “cgi” or standalone?

No. There’s a property on app though.

http://documentation.xojo.com/index.php/WebApplication.Mode

I checked the documentation. I doesn’t show any sample.

I tried to type “app.” but there is no property for MODE from the list. Is it removed?

In using xojo 2018 r2

[quote=409724:@ronaldo florendo]I checked the documentation. I doesn’t show any sample.

I tried to type “app.” but there is no property for MODE from the list. Is it removed?

In using xojo 2018 r2[/quote]

Try:

If app.[autocomplete]

This works for me

MsgBox("Mode: " + app.Mode.ToText)

And app.m… autocompletes

Thank guys,

tried to type it even it does not appear from the [AUTOCOMPLETE]. It works!

which one is better ? what are the pros and cons o? thanks