GetAlphaOptionList
Script function

world.GetAlphaOptionList

DOC_scripting Read about scripting

Type

Method

Summary

Gets the list of world alphanumeric options

Prototype

VARIANT GetAlphaOptionList();

DOC_data_types View list of data type meanings


Description

Returns a variant array which is a list of all options that you can get with GetAlphaOption or set with SetAlphaOption.

The examples show extracting all option names, and their values.

The option names should be reasonably self-explanatory.



VBscript example

For Each opt In world.GetAlphaOptionList
   world.note opt + " = " + cstr (world.GetAlphaOption ( opt ))
Next



Jscript example

optionlist = new VBArray(world.GetAlphaOptionList()).toArray();

for (i = 0; i < optionlist .length; i++)
  world.note(optionlist [i] + " = " + world.GetAlphaOption (optionlist [i] ));



PerlScript example

foreach $item (Win32::OLE::in ($world->GetAlphaOptionList))
  {
  $world->note($item . " = " . $world->GetAlphaOption($item));
  }



Python example

for opt in world.GetAlphaOptionList: world.Note (opt)



Lua example

for k, v in pairs (GetAlphaOptionList ()) do 
  Note (v) 
end



Return value

It returns a variant array containing the names of all the options. Use "ubound" to find the number of options in the list. You can then use "GetAlphaOption" to return the value for that particular option, or "SetAlphaOption" to set that option value.




See Also ...

Topic

DOC_options Option setting and retrieval

Functions

FNC_GetAlphaOption GetAlphaOption (Gets the value of an alphanumeric configuration option)
FNC_GetCurrentValue GetCurrentValue (Gets the current value of a named world option)
FNC_GetDefaultValue GetDefaultValue (Gets the default value of a named world option)
FNC_GetInfo GetInfo (Gets information about the current world)
FNC_GetLoadedValue GetLoadedValue (Gets value of a named world option, as loaded from the world file)
FNC_GetOption GetOption (Gets value of a named world option)
FNC_GetOptionList GetOptionList (Gets the list of world options)
FNC_SetAlphaOption SetAlphaOption (Sets value of a named world alphanumeric option)
FNC_SetInputFont SetInputFont (Sets the font for the input window)
FNC_SetOption SetOption (Sets value of a named world option)
FNC_SetOutputFont SetOutputFont (Sets the font for the output window.)

(Help topic: function=GetAlphaOptionList)

DOC_contents Documentation contents page