Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and may be fixed. Will keep monitoring.


devel / comp.lang.xharbour / Re: vUser := GetEnv("USERNAME")

SubjectAuthor
* vUser := GetEnv("USERNAME")Otto Haldi
`- vUser := GetEnv("USERNAME")Enrico Maria Giordano

1
vUser := GetEnv("USERNAME")

<76ee58d2-8959-4ef2-8985-a4492658935cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10686&group=comp.lang.xharbour#10686

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a37:bd01:0:b0:6ec:53ab:90ee with SMTP id n1-20020a37bd01000000b006ec53ab90eemr20268995qkf.415.1669104454240;
Tue, 22 Nov 2022 00:07:34 -0800 (PST)
X-Received: by 2002:a81:5d5:0:b0:36a:d4df:c6b6 with SMTP id
204-20020a8105d5000000b0036ad4dfc6b6mr4700053ywf.18.1669104454024; Tue, 22
Nov 2022 00:07:34 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Tue, 22 Nov 2022 00:07:33 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=62.2.210.254; posting-account=JUJWmgoAAAC6zTWwzAl5l2TCnYthlL4o
NNTP-Posting-Host: 62.2.210.254
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <76ee58d2-8959-4ef2-8985-a4492658935cn@googlegroups.com>
Subject: vUser := GetEnv("USERNAME")
From: otto.hal...@gmail.com (Otto Haldi)
Injection-Date: Tue, 22 Nov 2022 08:07:34 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1139
 by: Otto Haldi - Tue, 22 Nov 2022 08:07 UTC

I have to read the environment variable %username%.
I tried with the function GetEnv( <cEnvVar> ) , but it doesn't work.
What is the best function for this?

Re: vUser := GetEnv("USERNAME")

<tli0n2$25ep$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10687&group=comp.lang.xharbour#10687

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: e.m.gior...@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: vUser := GetEnv("USERNAME")
Date: Tue, 22 Nov 2022 09:19:47 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <tli0n2$25ep$1@dont-email.me>
References: <76ee58d2-8959-4ef2-8985-a4492658935cn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 22 Nov 2022 08:19:46 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="9186db27533bf583184b2d2f0b8a543b";
logging-data="71129"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wVZu7zqxIXOCE/574I60j"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.5.0
Cancel-Lock: sha1:A6HeWzLN/uD0Woe0g2sX/prOxXM=
In-Reply-To: <76ee58d2-8959-4ef2-8985-a4492658935cn@googlegroups.com>
 by: Enrico Maria Giordan - Tue, 22 Nov 2022 08:19 UTC

Il 22/11/2022 09:07, Otto Haldi ha scritto:

> I have to read the environment variable %username%.
> I tried with the function GetEnv( <cEnvVar> ) , but it doesn't work.
> What is the best function for this?

This works fine here:

FUNCTION MAIN()

? GETENV( "USERNAME" )

INKEY( 0 )

RETURN NIL

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor