Discussions
Activity
Best Of...
Sign In
·
Register
Home
›
NAV/Navision Classic Client
Howdy, Stranger!
It looks like you're new here. Sign in or register to get started.
Sign In
Register
Quick Links
Categories
Recent Discussions
Activity
Best Of...
Unanswered
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
115
Navision DOS
854
Navision e-Commerce
1K
NAV Tips & Tricks
772
NAV Dutch speaking only
615
NAV Courses, Exams & Certification
2K
Microsoft Dynamics-Other
1.5K
Dynamics AX
313
Dynamics CRM
110
Dynamics GP
10
Dynamics SL
1.5K
Other
993
SQL General
384
SQL Performance
34
SQL Tips & Tricks
34
Design Patterns (General & Best Practices)
Architectural Patterns
10
Design Patterns
5
Implementation Patterns
53
3rd Party Products, Services & Events
1.7K
General
1.1K
General Chat
1.6K
Website
79
Testing
1.2K
Download section
23
How Tos section
260
Feedback
12
NAV TechDays 2013 Sessions
13
NAV TechDays 2012 Sessions
concatenate char to string
navshare
Member
Posts:
49
2010-03-03
edited 2012-03-28
in
NAV/Navision Classic Client
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.
0
Comments
navnaidu
Member
Posts:
15
2010-03-03
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
navshare
Member
Posts:
49
2010-03-03
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
navnaidu
Member
Posts:
15
2010-03-03
Hi,
You are welcome....
Regards,
gbnaidu.
0
Mike_HWG
Member
Posts:
104
2012-03-28
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
Sign In
or
Register
to comment.
Comments
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.
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>
You are welcome....
Regards,
gbnaidu.
InputText as text datatype with size 1024
OutputText as text datatype with size 1024
OutputText += FORMAT(InputText[1]);
Systems Analyst
NAV 2009 R2 (6.00.34463)