[Gambas-bugtracker] Bug #2242: env has no .Sort () method
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Fri Jun 11 16:49:21 CEST 2021
http://gambaswiki.org/bugtracker/edit?object=BUG.2242&from=L21haW4-
Comment #2 by Víctor PEREZ:
in this code you needed to order it !!
aText.Add ("[Environment]")
aEnv = New String []
For Each sVar In Env
aEnv.Add (sVar)
Next
aEnv.Sort
For Each sVar In aEnv
aText.Add (sVar & "=" & Env [sVar])
Next
Return aText
the reason is to present it better and clearer
You could make a class that contains 'Env' and there order it and do other tasks with the data of 'Env'
I would like to know how 'Env' and the gb commands are programmed, but I don't know how to access the code, if it is possible, or is it public.
More information about the Bugtracker
mailing list