| By: Marcelo Date: 2010-05-14 Time: 16:44 >Reply to post >Get email >Get direct url |
How to add a argument to an Event Function?function checa($BlockName,&$CurrRec,$RecNum, $pk = $p1000){ $q = mssql_query("SELECT fields FROM table WHERE fk = $CurrRec['field'] AND FK = $pk"); if (mssql_num_rows($q) > 0) { $CurrRec['check'] = 'checked'; }else { $CurrRec['check'] = ''; } } I just need to pass an value that isn't on this recordset, how can I do that? |
|
| By: Skrol29 Date: 2010-05-14 Time: 18:09 >Reply to post >Get email >Get direct url |
Re: How to add a argument to an Event Function?Hi,You cannot customize the event function calling syntax. You have to use a global variable that you retrieve in your event function. There is also an undocumented alternative (not tested yet):
|
|
| By: Marcelo Date: 2010-05-14 Time: 18:36 >Reply to post >Get email >Get direct url |
Re: How to add a argument to an Event Function?Thanks Skrol!I used a global. By the way, I tested the undocumented alternative, but I didn't worked. |