xsharp.eu • Help with converting StrEvaluate to X# - Page 2
Page 2 of 2

Help with converting StrEvaluate to X#

Posted: Thu Sep 28, 2017 10:08 am
by robert
Chris,
My current thinking is to only allow it in dialects where it is expect, in other words not in Vulcan and not in Core.

Robert

Help with converting StrEvaluate to X#

Posted: Thu Sep 28, 2017 2:33 pm
by Chris
Robert van der Hulst wrote:Chris,
My current thinking is to only allow it in dialects where it is expect, in other words not in Vulcan and not in Core.
Yeap, absolutely agreed!

Chris

ps. that's my first attempt to properly quote someone in the forums world, let's see if I did that properly :)

Help with converting StrEvaluate to X#

Posted: Thu Sep 28, 2017 3:01 pm
by Otto
agreed, seems best solution.

Help with converting StrEvaluate to X#

Posted: Fri Sep 20, 2019 10:59 pm
by boonnam
Sorry to necro old thread. Any idea when StrEvaluate will be implemented (or will not be at all)? It will compile but throw errors during runtime:

Exception has been thrown by the target of an invocation.
The method or operation is not implemented.

Thanks.

Help with converting StrEvaluate to X#

Posted: Sat Sep 21, 2019 9:47 am
by robert
Boonnam,
Can you show me an example of how you are using this ?
(Apart from the previous example

Code: Select all

SELF:oNetClnt:SetFilter( StrEvaluate('MTYPE=="&cType"') )
And what is cType in this context. A local, a dynamic memory variable, anything else ?
Would it help if the compiler changes this to

Code: Select all

SELF:oNetClnt:SetFilter( ei"MTYPE=="{cType}"") )

that means, use an interpolated expression ?

Robert