Iterate Runtime Objects

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Henry00
User
User
Posts: 88
Joined: Thu Jul 12, 2012 7:00 pm
Location: Germany
Contact:

Iterate Runtime Objects

Post by Henry00 »

I love the Runtime library and using it for an external scripting language sounds seamless! However there is no way to iterate through all runtime objects (e.g. strings 'VariableName', '#ConstantName', ''ProcedureName()'). The types are easy to identify through a little parsing.

Syntax
Result$ = RuntimeObject([Index])

Description
Gets the next runtime object string reference that was embedded into the executable.

Parameters
[Index | Optional] If specified, the runtime object for that index will be returned. The first runtime object index starts from 0.

Return value
The next runtime object value, or an empty string if no more runtime objects are found. If index is specified it will return the specified runtime object value.

Together with CountRuntimeObjects().


Thank you so much!