Sign in to follow this  
Followers 0
alback

Variable must be of type object error

3 posts in this topic

I receive a Variable must be of type "Object" error when running the following code.

#include <A3LTabControl.au3>

;this function selects the desired tab from the desired tab menu

Func SelectTab($Handle, $TabName)

$a = _Tab_FindTab ($Handle, $TabName)

If $a = -1 Then

MsgBox(0, "Can't find Tab Menu", $TabName)

Exit

EndIf

If _Tab_SetCurFocus ($Handle, $a) = -1 Then

MsgBox(0, "Can't select Tab Menu", $TabName)

Exit

EndIf

EndFunc ;==>SelectTab

Thanks

Share this post


Link to post
Share on other sites



I receive a Variable must be of type "Object" error when running the following code.

#include <A3LTabControl.au3>

;this function selects the desired tab from the desired tab menu

Func SelectTab($Handle, $TabName)

$a = _Tab_FindTab ($Handle, $TabName)

If $a = -1 Then

MsgBox(0, "Can't find Tab Menu", $TabName)

Exit

EndIf

If _Tab_SetCurFocus ($Handle, $a) = -1 Then

MsgBox(0, "Can't select Tab Menu", $TabName)

Exit

EndIf

EndFunc ;==>SelectTab

Thanks

You must have missed the "Read this before you download" part in the Auto3Lib thread. You definitely missed the part about posting all Auto3Lib questions in the Auto3Lib thread. :shocked: You need the beta version of AutoIt that has the new DllStruct functions in it.

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

You must have missed the "Read this before you download" part in the Auto3Lib thread. You definitely missed the part about posting all Auto3Lib questions in the Auto3Lib thread. :shocked: You need the beta version of AutoIt that has the new DllStruct functions in it.

You're right, I did not read the "Read this before you download" message. However, I did attempt to post in the Auto3Lib thread and received the following message:

Sorry, you do not have permission to start a topic in this forum

I will install the beta version and go from there.

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0