[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Returns the current element in the iteration cycle
Source position: objpash.inc line 251
function IEnumerator.GetCurrent: TObject; |
getCurrent should return the object instance representing the current value in the for in loop. GetCurrent will always be called immediatly after MoveNext returned True.
Remark: | The actual return type of the interface should not necessarily be TObject, it can be any type. The compiler will check the actual return type with the type of the loop variable, and they should match. |
|
Move to the next value |
|
|
Reset the pointer |
lazarus-ccr.sourceforge.net |