Jump to content

ByRef error???


 Share

Recommended Posts

Hello,

I've an error and don't know why and hope somebody can help me..
I think maybe i din't include somethin for the "ByRef" function, but i could be wrong :S
Anyway here is what i included ...

#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <File.au3> ; for _FileCreate ed.
#Include <GuiComboBoxEx.au3> ; for _GUICtrlComboBoxEx_ResetContent
#include "EzMySql.au3"
#include <Array.au3>

This is what i do before the error starts ... (everything else is running properly)

$query = "SELECT * FROM `users` ;"
   $hostname = Read_from_ini("app","server","ip","no_server_ip")
   $dbname = "blokkerreferencedata"
   $usrname = Read_from_ini("app","server","username","no_server_usr")
   $Pass = Read_from_ini("app","server","pass","no_server_pass")
   $SQLport = Read_from_ini("app","server","sql_port","no_server_port")
   $iresult_rows = ""
   $iresult_colums = ""
   $iresult = get_result($query,$hostname,$dbname,$usrname,$Pass,$SQLport,ByRef $iresult_rows,ByRef $iresult_colums)
   _ArrayDisplay($iresult,"result")

Here is the error i get...

==> Error in expression.:
$iresult = get_result($query,$hostname,$dbname,$usrname,$Pass,$SQLport,ByRef $iresult_rows,ByRef $iresult_colums)
$iresult = get_result($query,$hostname,$dbname,$usrname,$Pass,$SQLport,^ ERROR

does somebody see what i do wrong here???

thanks in advanced.

ps. if it isn't a forgotten "include" --> how does somebody know whish include to use???

 

as finishing touch god created the dutch

Link to comment
Share on other sites

  • Developers

You never specify byref on the statement calling a UDF but merely on the Func xyz() statement.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

×
×
  • Create New...