Txt file with 1500 characters??
Franklin
Member Posts: 253
Hi everybody,
I Need to create a txt file with a record of 1500 characters. When I create a variable of type text, only allows me to 1024. Can´t I do this?
There should be any way to solve that, right?
:-k :-k
EDIT: I think i can add two fields of 750 characters...
I Need to create a txt file with a record of 1500 characters. When I create a variable of type text, only allows me to 1024. Can´t I do this?
There should be any way to solve that, right?
:-k :-k
EDIT: I think i can add two fields of 750 characters...
0
Comments
-
Yes, you can split your text value across multiple variables. A Text Array is probably best suited for this.0
-
Or use an outstream, that way you can write lines of any length you want. If you pass a value to the WriteText function of an outstream, it will append it to the existing file without adding a newline at the end. You can force a newline by calling the WriteText function without a value.
The following sample is by no way complete, but will give you some pointers :
variables :
OutFile : file
oStream : OutStream ;OutFile.writemode(true) ; OutFile.create(outfilename) ; OutFile.createoutstream(oStream) ; oStream.WriteText('this writes the text to the file') ; oStream.WriteText('this will NOT be a new line !') ; oStream.WriteText ; // forces new line outfile.close ;0 -
Thanks!!
I think i´ll try with WriteText function of an outstream... like MBerger says... although i´have never used it. :thumbsup:0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 333 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
