Options

Type Conversion

jmlozaresjmlozares Member Posts: 110
Can I convert a value with a text data type to a numeric one?
Janderol Lozares Jr.
Manila, Phils.

Comments

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Yes, using EVALUATE
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    eromeineromein Member Posts: 589
    Let's EVALUATE Luc!
    OK := EVALUATE(Int, FORMAT(Luc));
    
    IF OK THEN
      MESSAGE('Luc is as simple as an Integer!');
    

    :wink:
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
Sign In or Register to comment.