User Tools

Site Tools


codesamples:listmemberaccess

Access a member in a list

using System.Collections.Generic

function Start( ) as void
	local oList as List<string>
	local nI as int
	
	oList := List<string>{}
	oList:Add( "Chris" )
	oList:Add( "Nikos" )
	oList:Add( "Robert" )
	oList:Add( "Fabrice" )

	for nI := 0 upto oList:Count - 1		
		System.Console.WriteLine( oList[nI] )
		System.Console.WriteLine( oList:Item[nI] )
	next

return
codesamples/listmemberaccess.txt · Last modified: 2018/05/23 09:24 by wolfgangriedmann