Jump to content
Sign in to follow this  
speedy6

Only Object-type variables allowed in an "With" statement

Recommended Posts

speedy6

I keep getting this error while running:

"Only Object-type variables allowed in an "With" statement"

It about this pice of code:

$array = _GetColVals($sql,"tblusers","run","userid",$userid)

and it is between a "case" statement.

What is the problem?

Thanks.

Speedy

Share this post


Link to post
Share on other sites
martin

I keep getting this error while running:

"Only Object-type variables allowed in an "With" statement"

It about this pice of code:

$array = _GetColVals($sql,"tblusers","run","userid",$userid)

and it is between a "case" statement.

What is the problem?

Thanks.

Speedy

You need to show more code for me to have an idea.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
speedy6

Case $msg[0] = $okbutton

$array = _GetColVals($sql,"tblusers","run","userid",$userid)

$tel = $array[1]

$tel = $tel + 1

_Query($sql,"update tblusers set run = "&$tel&"'where userid='"&$userid&"';")

ExitLoop

Share this post


Link to post
Share on other sites
enaiman

Your code sample is still too small to show where the problem is.

Post all the code or at least all While loop.

But first - check to see if you don't have a With somewhere (or maybe the While is misspelled)


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites
DW1

Maybe I just don't understand whats going on here, but

_Query($sql,"update tblusers set run = "&$tel&"'where userid='"&$userid&"';")oÝ÷ غ(Ébè­«ßÙ¢²È§Úòr§)àÛhjëh×6_Query($sql,"update tblusers set run = "&$tel&"'where userid='"&$userid&"';'")

Does that help?

Share this post


Link to post
Share on other sites
speedy6

Maybe I just don't understand whats going on here, but

_Query($sql,"update tblusers set run = "&$tel&"'where userid='"&$userid&"';")oÝ÷ غ(Ébè­«ßÙ¢²È§Úòr§)àÛhjëh×6_Query($sql,"update tblusers set run = "&$tel&"'where userid='"&$userid&"';'")

Does that help?

founded :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.