Results 1 to 4 of 4

Thread: Eval a function inside a string

Threaded View

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

    Default Eval a function inside a string

    is there a way to make it possible? Thanks

    Code:
         Function fValidateFunction Integer iParam Returns Boolean            
             If (iParam = 1) Function_Return True
             Else Function_Return False                        
         End_Function
            
         Object oWebButton1 is a cWebButton
             Set piColumnSpan to 0
             Set psCaption to "button"
            
             Procedure OnClick
                 String sTest
                    
                 Move "(fValidateFunction(Self,1))" to sTest
                                                                                           
                 If (Eval(sTest) = True) Begin                                    
                     Showln "true"                    
                 End                                               
            End_Procedure
         End_Object
    Last edited by Salvadori; 3-Oct-2019 at 07:40 AM.

Posting Permissions

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