speedy6 Posted July 31, 2007 Share Posted July 31, 2007 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 Link to comment Share on other sites More sharing options...
martin Posted July 31, 2007 Share Posted July 31, 2007 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.SpeedyYou 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. Link to comment Share on other sites More sharing options...
speedy6 Posted July 31, 2007 Author Share Posted July 31, 2007 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 Link to comment Share on other sites More sharing options...
enaiman Posted July 31, 2007 Share Posted July 31, 2007 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 :) Link to comment Share on other sites More sharing options...
DW1 Posted July 31, 2007 Share Posted July 31, 2007 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? AutoIt3 Online Help Link to comment Share on other sites More sharing options...
speedy6 Posted August 1, 2007 Author Share Posted August 1, 2007 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now