Print1D Data Member Function

Prints the array in 1D into a <StrList> object.

Prototype

int32 Print1D( int32 p_nStart, int32 p_nCount, StrList p_slData )

Parameters

Parameter Type Parameter Name Documentation
int32p_nStartThe index to start printing.
int32p_nCountThe number of items to print.
<StrList>p_slDataThe <StrList> that stores the printed array values.

Examples

Copy Text To Clipboard

import library "app_service_console_util.ssl";
import library "type_str_list_util.ssl";

auto Color r = new Color( 1, 1, 1, 255 );
auto Color g = new Color( 2, 2, 2, 255 );
auto Color b = new Color( 3, 3, 3, 255 );

auto ColorArray data;
data.Add( r );
data.Add( g );
data.Add( b );

auto StrList data_out;
data.Print1D( 0, data.GetCount(), data_out );

LibStrList.Out( data_out );

Results

STRLIST OUTPUT generated by STR_LIST_UTIL.SSL
1, 1, 1, 255,
2, 2, 2, 255,
3, 3, 3, 255