baanware
15th March 2009, 12:06
Hi

I would like to convert a string at run time using a simple conversion like:
a.string = toupper$(a.string)

I have mode this simple piece of code:
expr.id = expr.compile("a.string:=toupper$(a.string)")
s.expr$( expr.id )
expr.free ( expr.id )

When the code is executed it posts an error message saying that "toupper$" is an unknown symbol. The result is, that the string is nullified.

I suspect that the $ sign is the reason for the trouble. According to the manuals the $-sign has a special meaning (end of string) in runtime expressions. Is there any way of overcomming this?

Thanks!

grzegorz
16th March 2009, 10:16
Function expr.compile is not a 100% equivalent of bic6.*. It can handle only a limited set of functions. Expression like yours will not work.

Grzegorz

baanware
16th March 2009, 20:33
Hi Grzegorz,

This was what I feared, but I needed somebody to confirm it before throwing the towel into the ring. I will have to seek another solution.

Thanks for your feedback!

Best regards
Soeren Lildal