<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Thanks... That was just what I needed.<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">But.... what about going the other way? How can I pass multiple values to a function in func_odbc?<br>I can't use ARRAY as it can only be used to set variables, not read form them!<br><br>Doug.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Tilghman Lesher <tilghman@mail.jeffandtilghman.com><br>To: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users@lists.digium.com><br>Sent: Tuesday, November 27, 2007 9:08:50 PM<br>Subject: Re: [asterisk-users] Multiple Return Values from func_odbc<br><br>
On Tuesday 27 November 2007 20:05:55 Douglas Garstang wrote:<br>> Is there any way to return multiple values from functions defined in<br>> func_odbc.conf? It appears that you can only return one value.<br><br>Use the ARRAY function:<br><br>func_odbc.conf:<br>read=SELECT foo,bar FROM tablename WHERE baz='${ARG1}'<br><br>extensions.conf:<br>Set(ARRAY(foo,bar)=${ODBC_WHATEVER(bax)})<br><br>-- <br>Tilghman<br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a rel="nofollow" target="_blank" href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a rel="nofollow" target="_blank" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div><br></div></div><br>
<hr size="1">Never miss a thing. <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>
</div><br></div></div><br>
<hr size=1>Never miss a thing. <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>
</body></html>