Platforms to show: All Mac Windows Linux Cross-Platform

Back to EnvironmentMBS class.

EnvironmentMBS.Add(name as string,value as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS Util Plugin ❌ No ✅ Yes ❌ No ❌ No All
Add a property to the list.
Example
dim e as EnvironmentMBS

e=new EnvironmentMBS
if e.add("authorname","Christian") then
msgbox "ok"
else
msgbox "fail"
end if

Setting this value to some new value will currently only change this value for your application and all child applications.

EnvironmentMBS.Get(name as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS Util Plugin ❌ No ✅ Yes ❌ No ❌ No All
Returns the value for a named property.
Example
dim e as EnvironmentMBS

e=new EnvironmentMBS
msgbox e.get("windir") // normally c:\windows

EnvironmentMBS.Lines as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS Util Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No All
Returns array of definition lines of environment variables.
Example
dim e as new EnvironmentMBS
msgbox join(e.lines, endofline)

Returned strings are in format "name=value".

EnvironmentMBS.Name(Index as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS Util Plugin ❌ No ✅ Yes ❌ No ❌ No All
Returns the name of the environment propertie number n.

EnvironmentMBS.Names as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS Util Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No All
Returns array of names of environment variables.
Example
dim e as new EnvironmentMBS
msgbox join(e.lines, endofline)

EnvironmentMBS.Update

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Process MBS Util Plugin ❌ No ✅ Yes ❌ No ❌ No All
Updates the object to the current environment properties.

This method is called by the constructor and the methods which change the environment properties.

EnvironmentMBS.Value(Index as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Process MBS Util Plugin ❌ No ✅ Yes ❌ No ❌ No All
Returns the value of the environment propertie number n.

Setting this value to some new value will currently only change this value for your application and all child applications.
(Read and Write computed property)

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...