Ekas Software Windows Script Host Control for Delphi Help
IEnumVariant
Hierarchy, Members, Methods, Unit: ekWSHmain
Redeclared IEnumVariant interface definition; used to fetch collection items to support VBScript's "FOR EACH" statement.
IEnumVariant = interface(IUnknown)
Unit
ekWSHmain
Description
Custom declaration with substituted wrong parameter "pceltFetched: LongWord" from %Delphi%\Source\Rtl\Win\ActiveX.pas with correct "pceltFetched: PLongWord" in method "Next".
Notes
This interface is implemented and used internally, you don't need to obviously implement or use it in your source code.

IEnumVariant.Clone
IEnumVariant
Clones enumerator and returns its clone's interface.
function Clone(out Enum: IEnumVariant): HResult; stdcall;
Notes
This method is implemented and used internally, you don't need to obviously implement or use it in your source code.

IEnumVariant.Next
IEnumVariant
Basic method of IEnumVariant: enumerates collection items.
function Next(celt: LongWord; var rgvar: OleVariant; pceltFetched: PLongWord): HResult; stdcall;
Return Value
S_OK if asked quantity of elements is fetched successfully and S_FALSE if not
Description
Fills asked quantity ("celt" parameter) of collection items ("rgvar" - address of first element of array) and returns the real quantity of fetched elements in variable specified by "pceltFetched" paraneter
Notes
This method is implemented and used internally, you don't need to obviously implement or use it in your source code.

IEnumVariant.Reset
IEnumVariant
Resets enumerator and prepares it to start new enumeration.
function Reset: HResult; stdcall;
Notes
This method is implemented and used internally, you don't need to obviously implement or use it in your source code.

IEnumVariant.Skip
IEnumVariant
Skips asked quantity of elements ("celt" parameter).
function Skip(celt: LongWord): HResult; stdcall;
Return Value
S_OK if still there are elements for fetching.
Notes
This method is implemented and used internally, you don't need to obviously implement or use it in your source code.

Ekas Software Windows Script Host Control for Delphi Help
Copyright (c)2002,2003 Ekas Software