Consultor Eletrônico



Kbase P26042: How to get the hostname using the 4GL ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/12/2003
Status: Unverified

GOAL:

How to get the hostname using the 4GL ?

FIX:

/*
This sample code works on Windows NT, 2000 , XP and UNIX
and shows an easy way to get the hostname of the
machine where the client is running.
*/
DEF VAR id AS CHAR FORMAT "X(32)".

INPUT THROUGH hostname.
SET id.
ASSIGN id.
INPUT CLOSE.