Results 1 to 10 of 16

Thread: General Purpose Eval

Threaded View

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

    Re: General Purpose Eval

    Thanks Eros, I wasn't too familiar with the Format$() function.

    Why does this return 1? Eval_Math() returns 0 correctly. In my implementation, I'm blind as to what we're evaluating. So how do I tell which evaluator is right?

    Your code checks to see if the number from string and the string are the same thing. If they are, it assumes it's a number. But in this case, it's different (for some reason unknown to me), so it's throwing it off.

    Uses "Console"
    Uses "Eval"
    
    PrintL Evaluate("1 = 0")
    
    WaitKey
     
    Function Evaluate(strng As String) As String
     Return Eval_String(strng)
    End Function
    
    Last edited by ErosOlmi; 10-05-2011 at 21:23.

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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