Convert text values to number or char, how?

KarvalhoKarvalho Member Posts: 6
edited 2002-01-12 in Navision Financials
I there,

I'm new to Navision (I have NF 2.6) and I need make an expression and I have a problem!
I have a string and I need multiply each position in that string.

well, what I try to do is COPYSTR("my string",1,1) * 10 but that give me an error, and that´s correct. So, how can I convert the result of COPYSTR in a number or char?

Can I make that with another function?

Thanks,

Sorry about my english!

Comments

  • GrantGrant Member Posts: 30
    Try using EVALUATE
  • KarvalhoKarvalho Member Posts: 6
    I KG,

    I try to use the EVALUATE functions but maybe I'm doing something wrong, because I can't make the convertion.

    I store the result of COPYSTR in a 'text' variable with lenght (1) called var1,

    Like that:
    var1 := COPYSTR(mystring,1,1);

    Then I have a var2 (Integer) and I want put the value of var1 in var2, but I receive an error.

    In that situation what's the correct sintax of EVALUATE to do that?

    Thank's again

    <img border="0" title="" alt="" src="images/smiles/icon_mad.gif" />
  • KarvalhoKarvalho Member Posts: 6
    Ok, KG

    that's EVALUATE work's fine,

    thank's
    <img border="0" title="" alt="" src="images/smiles/icon_cool.gif" />
Sign In or Register to comment.