Difference between revisions of "GetM2DARows"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (1 revision: Importing auto-generated function articles)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Generated with joins}}
 
 
{{dafunction
 
{{dafunction
 
|name=GetM2DARows
 
|name=GetM2DARows
Line 6: Line 5:
 
|param1name=n2DA
 
|param1name=n2DA
 
|param1desc=The 2DA to access
 
|param1desc=The 2DA to access
 +
|param1default=
 
|param2type=string
 
|param2type=string
 
|param2name=s2DA
 
|param2name=s2DA
 
|param2desc=(optional) if n2da is -1 and this is a valid resource, it will retrieve the 2da based on the name instead of the index. Note that this should be avoided when possible.   
 
|param2desc=(optional) if n2da is -1 and this is a valid resource, it will retrieve the 2da based on the name instead of the index. Note that this should be avoided when possible.   
 +
|param2default=""
 
|returntype=int
 
|returntype=int
 
|returndesc=Returns the number of rows in the 2DA, returns 0 on error.
 
|returndesc=Returns the number of rows in the 2DA, returns 0 on error.

Latest revision as of 13:59, 3 August 2010

Returns the number of rows in the specified 2da.

int GetM2DARows(
int n2DA,
string s2DA = ""
);
Parameters:
n2DA
The 2DA to access
s2DA
(optional) if n2da is -1 and this is a valid resource, it will retrieve the 2da based on the name instead of the index. Note that this should be avoided when possible.
Returns:

Returns the number of rows in the 2DA, returns 0 on error.

Source:

script.ldf

Description

Returns the number of rows in the specified 2da.