Color scheme: Riviera
You are here: start » en » Documentation » Microsoft Access development tools » WKL Forms Object Library » WKL Forms Object Library API reference » WklTimerTasks

WklTimerTasks

WklTimerTasks class

Signature

Dim myWklTimerTasks As WklTimerTasks

Summary

The tasks of a WklTimerList; For Each walks them in the order they were added.

Parameters

None

Remarks

Not created directly; returned by other members of the library.

MemberKindSummary
`Item`PropertyGets a task by key or position.
`Count`PropertyGets the number of tasks.
`Add`MethodAdds a task.
`Remove`MethodRemoves a task; its web requests are canceled without events.
`Clear`MethodRemoves all tasks.

Code example

None

Inheritance

None

Item property

Signature

Property Get Item(ByVal Index As Variant) As WklTimerTask

Summary

Gets a task by key or position.

Parameters

NameTypeOptionalDefaultDescription
IndexVariantNo–The key (without regard to case) or the position from 0.

Property value: `WklTimerTask` – The task.

Remarks

Default member: it can be left out, as in myWklTimerTasks(...) for myWklTimerTasks.Item(...). Read-only.

Code example

None

Inheritance

Declared by WklTimerTasks.

Count property

Signature

Property Get Count() As Long

Summary

Gets the number of tasks.

Parameters

None

Property value: Long – The number of tasks.

Remarks

Read-only.

Code example

None

Inheritance

Declared by WklTimerTasks.

Add method

Signature

Function Add(ByVal Key As String, Optional ByVal Kind As WklTimerTaskKind = wttEvent) As WklTimerTask

Summary

Adds a task.

Parameters

NameTypeOptionalDefaultDescription
KeyStringNo–A unique key, compared without regard to case.
Kind`WklTimerTaskKind`YeswttEventThe kind of work (default wttEvent).

Return value: `WklTimerTask` – The new task.

Remarks

A kind that is not available in this version is refused with wkeNotAvailable.

Code example

None

Inheritance

Declared by WklTimerTasks.

Remove method

Signature

Sub Remove(ByVal Index As Variant)

Summary

Removes a task; its web requests are canceled without events.

Parameters

NameTypeOptionalDefaultDescription
IndexVariantNo–The key or the position from 0.

Remarks

None

Code example

None

Inheritance

Declared by WklTimerTasks.

Clear method

Signature

Sub Clear()

Summary

Removes all tasks.

Parameters

None

Remarks

None

Code example

None

Inheritance

Declared by WklTimerTasks.

en/wiki/msaccess/comctl/api-reference/wkltimertasks.txt · Last modified: by Wolfgang van der Stille