I’ve been working on trying to find a strange little and inconsistent bug which has led me to creating GetKixOptions, which just gets all the SETOPTIONS from kix, into an array.

A couple of things about this…
I never noticed or forgot about ASCII and HideCursor
Is there any other Options you can think of that have been added to newer versions of Kix that are not in the list?
Can anyone think of a more direct way to create this list of values?

 Code:
$Vals=GetKixOptions()
? ubound($Vals)
for each $val in $vals
  ? $val
next


function GetKixOptions
  dim $KOptions[9],$i,$A[9]
  $KOptions="ASCII","CaseSensitivity","DisableDebugging","Explicit","HideCursor","NoVarsinStrings","NoMacrosinstrings",
            "WOW64AlternateRegView","Wow64FileRedirection","WrapAtEOL"
  for $i = 0 to ubound($KOptions)
    $A[$i]=$KOptions[$i]+ "=" + setoption($KOptions[$i] )
  next
  $GetKixOptions=$A
endfunction


Output
 Code:
ASCII=OFF
CaseSensitivity=OFF
DisableDebugging=OFF
Explicit=OFF
HideCursor=OFF
NoVarsinStrings=OFF
NoMacrosinstrings=OFF
WOW64AlternateRegView=OFF
Wow64FileRedirection=ON
WrapAtEOL=OFF