Platforms to show: All Mac Windows Linux Cross-Platform

CallMethodLaterMBS(target as object, name as string, afterDelay as Double) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Process MBS Util Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calls a method on the target object on the main thread after the given delay in seconds.
Example
if CallMethodLaterMBS(window1, "Test", 5.0) then
msgbox "OK"
else
msgbox "Failed"
end if

The method must be declared on the given class for the target object with no parameters and no return values.

The method will be called later (Asyncronously) on the main thread. Useful for performing non thread safe stuff like GUI functions on the main thread after the given delay in seconds.

Returns true on success and false on failure.
The time given is just a roughly suggestions. Actual time on the method call depends on how busy your application is.

See also:

CallMethodLaterMBS(target as object, name as string, afterDelay as Double, value1 as Variant) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Process MBS Util Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calls a method on the target object on the main thread after the given delay in seconds.
Example
if CallMethodLaterMBS(window1, "Test", 4.0, "Hello") then
msgbox "OK"
else
msgbox "Failed"
end if

The method must be declared on the given class for the target object with one variant parameter and no return values.

The method will be called later (Asyncronously) on the main thread after the given delay in seconds. Useful for performing non thread safe stuff like GUI functions on the main thread.

Returns true on success and false on failure.
The time given is just a roughly suggestions. Actual time on the method call depends on how busy your application is.

See also:

CallMethodLaterMBS(target as object, name as string, afterDelay as Double, value1 as Variant, value2 as Variant) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Process MBS Util Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calls a method on the target object on the main thread after the given delay in seconds.
Example
if CallMethodLaterMBS(window1, "Test", 3.0, "Hello", "World") then
msgbox "OK"
else
msgbox "Failed"
end if

The method must be declared on the given class for the target object with two variant parameters and no return values.

The method will be called later (Asyncronously) on the main thread. Useful for performing non thread safe stuff like GUI functions on the main thread after the given delay in seconds.

Returns true on success and false on failure.
The time given is just a roughly suggestions. Actual time on the method call depends on how busy your application is.

See also:

CallMethodLaterMBS(target as object, name as string, afterDelay as Double, value1 as Variant, value2 as Variant, value3 as Variant) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Process MBS Util Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calls a method on the target object on the main thread after the given delay in seconds.
Example
if CallMethodLaterMBS(window1, "Test", 3.0, "Hello", "World", 5) then
msgbox "OK"
else
msgbox "Failed"
end if

The method must be declared on the given class for the target object with three variant parameters and no return values.

The method will be called later (Asyncronously) on the main thread. Useful for performing non thread safe stuff like GUI functions on the main thread after the given delay in seconds.

Returns true on success and false on failure.
The time given is just a roughly suggestions. Actual time on the method call depends on how busy your application is.

See also:

Blog Entries

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...