Chop
Description
Description
Chops cuts off the last element in the array and saves it as an output variable.
Syntax
Syntax
trg.array.Chop()
Return value
Return value
This function returns whatever element you chopped.
Sample
'---------- Start ----------
Function Start
Dim var
trg.array.Add( 51 )
trg.array.Add( 36 )
var = trg.array.Chop()
trg.Message( var )
End Function
In this case chop would cut the last element in the array which is 36 and it would be set to var.
See also