Convert text values to number or char, how?

Karvalho
Member Posts: 6
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!
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!
0
Comments
-
Try using EVALUATE0
-
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" />0 -
Ok, KG
that's EVALUATE work's fine,
thank's
<img border="0" title="" alt="" src="images/smiles/icon_cool.gif" />0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions