The problem occurs when using Evaluate(): Method is overloaded, Cannot determine the right overload to call.

This forum is meant for questions about the Visual FoxPro Language support in X#.

Post Reply
User avatar
xinjie
Posts: 142
Joined: Wed May 20, 2020 10:05 am
Location: China
Contact:

The problem occurs when using Evaluate(): Method is overloaded, Cannot determine the right overload to call.

Post by xinjie »

Hi, Robert

I'm having this problem with the Evaluate() function. The following code is a reproduction in a console program.

Code: Select all

Function Start() As Void Strict
    Var a = "temp"
    Var b = "Empty('" + a + "')"
    Var c = "Len(' + a +') > 0"
    ? Evaluate(c)       // .T.
    ? Evaluate(b)       // Unprocessed exceptions: Method is overloaded, Cannot determine the right overload to call.
    wait
Endfunc
Similar code works fine in VFP.

Code: Select all

a = "temp"
b = "Empty('" + a + "')"
c = "Len(' + a +') > 0"
? Evaluate(c)	&& .T.
? Evaluate(b) 	&& .F.
简单的东西重复做,你能成为专家;重复的东西用心做,你能成为赢家!
Post Reply