7 Replies Latest reply: May 3, 2012 9:22 AM by Karthikeyan B RSS

    Calling a Subroutine in Trigger Action

      Hi,

       

      I am using QV 11 Personal Edition

       

      I have written a sub routine to calculate dates based on a selection.

      I have kept a slider control and when the value of the slider changes, it should call this subroutine and inturn calculate the dates.

       

      My sub routine is like this

       

      SUB SubName

           SET var1 = some date conversion

           SET var2 = other conversion

      ENDSUB

       

      I will be using these variables in other controls

       

      I went to the Field Event Trigger (the field is linked to the slider control) and added an External -> Run Macro action for OnSelect event

       

      I tried to call the subroutine using

      SubName

      as well as

      CALL SubName

       

      Both didn't work out. Can anyone help please..