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

Retorna o nome da máquina (Hostname) onde o Smart Client está sendo executado.

Sintaxe

GetComputerName()

Retorno

Nome

Tipo

Descrição

cRet

caractere

Retorna o nome da máquina (Hostname) onde o Smart Client está sendo executado.

Exemplos

user function exemplo ()
  Local cCompName:= ""
  cCompName := GetComputerName()
  conout("Nome da maquina: " + cCompName)  
Return

Abrangência

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