STRSUBSTNO value problem

awatharam86
Member Posts: 49
hi guys,
I'm understand that STRSUBSTNO can use up to 10 values. Currently I'm able to use up to 15 values inside and it's working fine. I tried to add more values and now it is showing error "Reduce the expression so it is less complex". Anyone have any idea how to add more value inside or how to separate it into two?
Thanks in advance.
I'm understand that STRSUBSTNO can use up to 10 values. Currently I'm able to use up to 15 values inside and it's working fine. I tried to add more values and now it is showing error "Reduce the expression so it is less complex". Anyone have any idea how to add more value inside or how to separate it into two?
Thanks in advance.
0
Comments
-
You can nest STRSUBSTNO's.
For example:OBJECT Codeunit 50000 stringtest { OBJECT-PROPERTIES { Date=02.10.13; Time=[ 9:55:56]; Modified=Yes; Version List=urpok; } PROPERTIES { OnRun=BEGIN ReturnString := '1: %1, 2: %2, 3: %3, 4: %5, 5: %5, 6: %6'; ReturnString := STRSUBSTNO(ReturnString, 't', 'h', 'i', 's', ' ', 'i '); ReturnString += '7: %1, 8: %2, 9: %3, 10: %5, 11: %5, 12: %6'; ReturnString := STRSUBSTNO(ReturnString, 's', ' ', 't', 'h', 'e', ' '); ReturnString += '13: %1, 14: %2, 15: %3, 16: %5, 17: %5, 18: %6'; ReturnString := STRSUBSTNO(ReturnString, 's', 't', 'r', 'i', 'n', 'g'); MESSAGE(ReturnString); END; } CODE { VAR ReturnString@1000000000 : Text[200]; BEGIN END. } }
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