Forum Post: Re: Convert String Value Into Expression

  • Thread starter Thread starter Fernando Souza
  • Start date Start date
Status
Not open for further replies.
F

Fernando Souza

Guest
Remove the quotes around it. If you add quotes, that becomes a string and not an expressions. ASSIGN cExpression = IF 2 + 2 = 4 THEN '1' ELSE '2'. DISP cExpression. For the second one, you don't need to call STRING twice. ASSIGN cExpression = STRING(estabelec.cep,'99999-999') ASSIGN cExpression = c-cgc.

Continue reading...
 
Status
Not open for further replies.
Back
Top