How to write multible lines to a textbox.

Resender
Member Posts: 119
Hello all,
I'm currently tasked with writing code that will display when we can accept certain pallets on a transaction based on the country code of the delivery.
Now on one of the reports that need this, I need to display in the first line that we can trade in that pallet. and the second and 3th line should display that this can only be done when accepting our terms.
Example
!!! Tradepallets for UK !!! !!!Create receipt !!!
The receipt is binding for the contact and is the only proof of evidence if discussion arise's
See our terms of agreement.
I've searched but haven't found a sstraightforward answer, or one that can duplicate.
Thank you for your time
I'm currently tasked with writing code that will display when we can accept certain pallets on a transaction based on the country code of the delivery.
Now on one of the reports that need this, I need to display in the first line that we can trade in that pallet. and the second and 3th line should display that this can only be done when accepting our terms.
Example
!!! Tradepallets for UK !!! !!!Create receipt !!!
The receipt is binding for the contact and is the only proof of evidence if discussion arise's
See our terms of agreement.
I've searched but haven't found a sstraightforward answer, or one that can duplicate.
Thank you for your time
0
Answers
-
Going on the brief description you provided...
You want it in one textbox?
Have you thought about an array?
Are these messages stored in Text Constants?
Text001:!!! Tradepallets for UK !!! !!!Create receipt !!!
Text002:The receipt is binding for the contact and is the only proof of evidence if discussion arise's
Text003:See our terms of agreement.
if "Country Code" = "UK" then
TextVariable := Text001+' '+Text002+' '+Text003
else TextVariable := Text002+' '+Text003;
You also have to make your multiline text box large enough to show the message - it won't auto stretch.
I would put each text in it's own section - showing & hiding depending on if it needs to be visible or not. Eliminating big blank spaces.0 -
Or set the multiline property on the text box to Yes. You can separate lines with back slashes (\)0
-
Ok those indeed work thanks for the replies.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