Results 1 to 4 of 4

Thread: Eval a function inside a string

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4

    Default Re: Eval a function inside a string

    Solved just declaring function as Global, also is need specify type of passed parameters, like:

     Function fValidateFunction Global Integer iParam Returns Boolean            
             If (iParam = 1) Function_Return True
             Else Function_Return False                        
         Object oWebButton1 is a cWebButton
             Set piColumnSpan to 0
             Set psCaption to "button"
             Procedure OnClick
                 String sTest
                 Move "(fValidateFunction(Integer(1)))" to sTest
                 If (Eval(sTest) = True) Begin                                    
                     Showln "true"                    
    Last edited by Salvadori; 4-Oct-2019 at 02:42 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts