concatenate char to string

navshare
Member Posts: 49
Hi
I have some character which i want to concatenate as a string.
i derived this character from a different string using for loop and stored into array.
Pls tell me how to proceed further to concatenate again as a string.
I have some character which i want to concatenate as a string.
i derived this character from a different string using for loop and stored into array.
Pls tell me how to proceed further to concatenate again as a string.
0
Comments
-
Hi,
I think you should take the array datatype as a text with size 1 then you can add the array characters.
EX:- Arr as text datatype with size 1.
arr[1] := 'N';
arr[2] := 'a';
arr[3] := 'v';
Now we want to concatenate the char to string so,
txt as text datatype.
use the for loop to add char.
txt += arr;
Regards,
gbnaidu.0 -
hi
I too tried previously in the same way as u told.i made a small mistake regarding the datatype conversion.
Now i got the result.
Thanks =D>0 -
Hi,
You are welcome....
Regards,
gbnaidu.0 -
If you are working with text datatypes that are longer than size 1:
InputText as text datatype with size 1024
OutputText as text datatype with size 1024
OutputText += FORMAT(InputText[1]);Michael Hollinger
Systems Analyst
NAV 2009 R2 (6.00.34463)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