🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #41360

Re: Clipper - DOS variable help needed.

#41360
From: Stephen M. Dunn
Date: Fri, 12 Jan 1990 20:32
28 lines
1545 bytes
In article <Jan.10.14.08.52.1990.10441@elbereth.rutgers.edu> ssdesai@elbereth.rutgers.edu (Sunil S. Desai) writes:
$This is for Clipper programmers.  How do you access DOS variable from
$Clipper application?
$I am writing a network application that need to know the user name for
$certain operations.  What I am trying to do is use DOS SET command to 
$SET USER=SUNIL from NetWare login script and then read USER variable from
$Clipper to do some operations.

   From the Clipper Summer '87 manual, "Summary of Clipper Functions", page
6-8:

GETE(<expC>)
	Returns the contents of a DOS environment variable specified by
	<expC> as a character string.

   So, you'd just do something like

USERNAME = GETE ("USER")
DO CASE
CASE USER = "SUNIL"
:
:
:
-- 
Stephen M. Dunn                               cs4g6ag@maccs.dcss.mcmaster.ca
          <std_disclaimer.h> = "\nI'm only an undergraduate!!!\n";
****************************************************************************
    If it's true that love is only a game//Well, then I can play pretend
Technical Details
Message-ID: <25AE3EDC.13629@maccs.dcss.mcmaster.ca>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!maccs!cs4g6ag
References: <Jan.10.14.08.52.1990.10441@elbereth.rutgers.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!maccs!cs4g6ag
From: cs4g6ag@maccs.dcss.mcmaster.ca (Stephen M. Dunn)
Newsgroups: comp.sys.ibm.pc
Subject: Re: Clipper - DOS variable help needed.
Keywords: Clipper, DOS
Message-ID: <25AE3EDC.13629@maccs.dcss.mcmaster.ca>
Date: 12 Jan 90 20:32:28 GMT
References: <Jan.10.14.08.52.1990.10441@elbereth.rutgers.edu>
Reply-To: cs4g6ag@maccs.dcss.mcmaster.ca (Stephen M. Dunn)
Organization: McMaster University, Hamilton, Ontario
Lines: 28