Core Function DLLStructList

From Sputnik Wiki
Jump to: navigation, search
DLLStructList( <expression> )

Contents

Description

Return an array of all user defined DLLStructLists (Or just ones fitting a given pattern).

expression

Optional; Text to find contained in the DLLStructList names or a regex to match against the DLLStructList names.

Return Value

Success: Returns an array of the found DLLStructLists.

Failure: Returns an empty array.

Remarks

None.

Example

// Define a few user DLLStructLists
DLLStructCreateDef("moo", "int a;int b");
DLLStructCreateDef("cat", "int a;int b");
DLLStructCreateDef("dog", "int a;int b");
DLLStructCreateDef("fox9", "int a;int b");
 
// All DLLStructLists
foreach(DLLStructList() as $c)
{
	println("F: " . $c);
}
println("Loop complete\n");
 
// All DLLStructLists that contain "at"
foreach(DLLStructList("at") as $c)
{
	println("F: " . $c);
}
println("Loop complete\n");
 
// All DLLStructLists that match the regex pattern \w+\d
foreach(DLLStructList(m/\w+\d/) as $c)
{
	println("F: " . $c);
}
println("Loop complete\n");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox