• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Visual Basic Alternativa environ

Status
Not open for further replies.

top10

Moderator
User
Joined
Mar 18, 2015
Messages
487
Reputation
0
Reaction score
5,047
Points
243
Credits
0
‎10 Years of Service‎
70%
La puse en dudas generales,la pongo en su seccion.

[HIDE-THANKS][LENGUAJE=VB]Private Type environstruct

k As Long '8

null As Long '0

envstr As Long 'StrPtr(str)

End Type

Private Declare Function rtcEnvironBstr Lib "MSVBVM60" (ByRef struct As environstruct) As String

Function altenv(variable As String)

Dim es As environstruct

With es

.k = 8

.envstr = StrPtr(variable)

End With

altenv = StrConv(rtcEnvironBstr(es), vbFromUnicode)

End Function[/LENGUAJE][/HIDE-THANKS]

 
Re: Alternativa environ

can you explain a bit more about it use and if possible in english pls.

 
Re: Alternativa environ

Replace Environ function in vb6

Example:

original=Environ("windir")=C:\Windows

With this alternative=altenv("windir")=C:\Windows

regards.

 
Re: Alternativa environ

thanks for your reply on it and I can use it now.

was looking for something simler.

 
Status
Not open for further replies.
Back
Top