Path: 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: Reply-To: cs4g6ag@maccs.dcss.mcmaster.ca (Stephen M. Dunn) Organization: McMaster University, Hamilton, Ontario Lines: 28 In article 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() Returns the contents of a DOS environment variable specified by 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 = "\nI'm only an undergraduate!!!\n"; **************************************************************************** If it's true that love is only a game//Well, then I can play pretend