Sign in to follow this  
Followers 0
speedy6

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

6 posts in this topic

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



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

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

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

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

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  
Followers 0