WinStudio
IWSApplication interface
Returns a string to indicate the platorm where the form is executing. If the form is executing in WinStudio, it returns "WIN". If the form is executing via Web rendering, it returns "WEB".
Application.Platform
If ( Application.Platform = "WEB" ) then ThisForm.Components("winonlybutton").Enabled = false End if