|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
problems using functions w/ parameters
this results in an error.
Code:
public function query("host","sql")
cst="driver={mysql odbc 3.51 driver};server="&host&";uid=root;pwd=;database=test"
some more code..
and when calling the function... Code:
some code
db.query("localhost","select * from startsida order by nr")
some more code..
what's wrong (error tells "identifier expected") ? |
|
#2
|
|||
|
|||
|
what is:
public function query("host","sql") maybe you should try: public function query(host,sql) or even public function query(byVal host, byVal sql)
__________________
-- ngibsonau |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > problems using functions w/ parameters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|