Core Function DLLStructGetDef

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> DLLStructGetDef( <name> ) </pre> === Description === Return the <def string> of a given DLLStruct created by DLLStructCreateDef(). === Parameters === ==== name ==== T...")
 
m (1 revision)
 
(3 intermediate revisions by one user not shown)
Line 17: Line 17:
 
Success: The <def string> of the DLLStruct.
 
Success: The <def string> of the DLLStruct.
  
Failure: 0.
+
Failure: empty string.
  
 
=== Remarks ===
 
=== Remarks ===
Line 24: Line 24:
  
 
=== Example ===
 
=== Example ===
 +
 +
This example gets the DefString by direct name created by DLLStructCreateDef:
  
 
<syntaxhighlight lang="sputnik">
 
<syntaxhighlight lang="sputnik">
Line 29: Line 31:
 
$DefString = DLLStructGetDef("POINT");
 
$DefString = DLLStructGetDef("POINT");
 
println("The def string of 'POINT' is: " . $DefString);
 
println("The def string of 'POINT' is: " . $DefString);
 +
</syntaxhighlight>
 +
 +
This example gets the DefString by variable created by DLLStructCreate:
 +
 +
<syntaxhighlight lang="sputnik">
 +
$Point = DLLStructCreate("int x; int y");
 +
$DefString = DLLStructGetDef($Point);
 +
println("The def string is: " . $DefString);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:Core Function]]
 
[[Category:Core Function]]

Latest revision as of 12:37, 14 June 2015

DLLStructGetDef( <name> )

Contents

Description

Return the <def string> of a given DLLStruct created by DLLStructCreateDef().

Parameters

name

The name of a DLLStruct created using DLLStructCreateDef.

Return Value

Success: The <def string> of the DLLStruct.

Failure: empty string.

Remarks

None.

Example

This example gets the DefString by direct name created by DLLStructCreateDef:

DLLStructCreateDef("POINT", "int x;int y");
$DefString = DLLStructGetDef("POINT");
println("The def string of 'POINT' is: " . $DefString);

This example gets the DefString by variable created by DLLStructCreate:

$Point = DLLStructCreate("int x; int y");
$DefString = DLLStructGetDef($Point);
println("The def string is: " . $DefString);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox