Hi,

Yes, it run under PICK flavor, 
A trigger is not linked to the flavor of the current VOC, it is a definition 
into the header of the file.  A subroutine is always executed into his 
compilation's flavor (from VOC wehre BASICed or $OPTIONS in source)

Under PICK Flavor you must create a CATALOG verb to global catalog your Trigger 
subroutines.
    CATALOG               
001 V                     
002 CATALOG               
003 I                     
004 BDGZ                  
005 catalog               
006 PICK.FORMAT           
                          
    CATALOGI              
001 V
002 CATALOG               
003 I                     
004 BDGZ                  
005 catalog               
006 INFORMATION.FORMAT    

Then, compile your routine BASIC BP mytrigger
Then, global catalog your routine CATALOGI BP *mytrigger mytrigger
Then you can fix it to a file 
CREATE TRIGGER MYTRIGGER BEFORE INSERT OR UPDATE ON file FOR EACH ROW CALLING 
"*mytrigger";

My two pence.
Manu


> -----Message d'origine-----
> De : [EMAIL PROTECTED] [mailto:owner-u2-
> [EMAIL PROTECTED] De la part de Tom Dodds
> Envoyi : jeudi 20 novembre 2008 16:31
> @ : [email protected]
> Objet : [U2] Triggers on PICK flavor of UV
> 
> Does anyone know if Triggers are supported under the PICK flavor of
> UniVerse.
> 
> 
> 
> >CREATE TRIGGER UPCASE BEFORE INSERT OR UPDATE ON HTTEST CALLING
> UPCASE.IT;
> 
> Statement triggers are not supported.
> 
> 
> 
> If they are not, does anyone know a cleaver way  around it other than
> writing your own?
> 
> 
> 
> Thanks in advance
> 
> 
> 
> Tom
> -------
> u2-users mailing list
> [email protected]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to