Re: trigger on view by Nuyttens
Nuyttens
Mon Oct 23 02:36:23 CDT 2006
Anders,
Look like this could do the trick !
Thanks alot
Xavier
"AA" <A@A> schreef in bericht
news:%23vq%23OmF9GHA.1168@TK2MSFTNGP03.phx.gbl...
>* Reports to the screen Event name, where it is called from and ;
> * the parameter passed.
> PROCEDURE dbc_AfterCloseTable ;
> (cTableName)
> ? '>> ' + PROGRAM()
> ?? ' in ' + SUBSTR(SYS(16),RAT('\',SYS(16))+1)
> ? ' cTableName = ' + TRANSFORM(cTableName) + ' - ' ;
> + TYPE('cTableName')+' /end/ '
> ENDPROC
> You have to set events on for the database:
> DBSETPROP('databasename','DATABASE','DBCEvents', .T.)
> -Anders
>
> "Nuyttens Xavier" <no.mail@mail.com> skrev i meddelandet
> news:h35_g.139358$tN.2054252@phobos.telenet-ops.be...
>> Hi,
>>
>> We have a problem with a view that gets closed somewhere along the
>> process of our program, but be have no clue where the error is. Is there
>> some way to trigger code that is excecuted when a view is closed so we
>> can trap the problem ? Something like a trigger for a table.
>>
>> thankx
>> Xavier
>>
>
>