import.css=/download/attachments/6062824/tecnologia.css

Informa se o Application Server está sendo executado em ambiente Unix, Linux ou Microsoft Windows.

Sintaxe

IsSrvUnix()

Retorno

Nome

Tipo

Descrição

lRet

lógico

Retorna verdadeiro (.T.), se o Application Server estiver sendo executado em Unix ou Linux; caso contrário, retornará falso (.F.), se estiver sendo executado em ambiente Microsoft Windows.

Exemplos

user function Exemplo ()
  Local lSrvUnix := IsSrvUnix()
  
  if ( lSrvUnix )
    conout( "Application Server running on Linux" )
  else
    conout( "Application Server running on Windows" )    
  endif
Return

Abrangência

Advanced Protheus 6.09, Advanced Protheus 7.10, Microsiga Protheus 8.11, Protheus 10, TOTVS Application Server 10, ByYou Application Server