UDS sub and functions

Hi all,

Does anyone have any suggestions on how to incorporate user-defined functions and additional sub routines in UDS?

I have a working (pseudo-codes below), intended to be assigned to Table_Post-Write event for AR_Customer_bus.  

Basically, there are 3 sub routines and 2 functions.  The first one (the first 2 lines) call the subs, and each sub calls the functions.  Putting this right in the UDS Maintenance wraps the entire code block with Sub...End sub so it wouldn't work.  How do I make this happen??


Call Sub1
Call Sub2

Sub Sub1
    do something
    Call fn1
End Sub

Sub Sub2
    do something
    Call fn2
End sub

Function fn1
    calculate something
End function

Function fn2
    calculate something
End function

Ken

Parents Reply Children