I want to Check whether Customer No. Start with 'e' ..
                
                    divyesh10                
                
                    Member Posts: 71                
            
                        
            
                    I am new to navision and i want to know to Check whether Customer No. Start with 'e' ..
i tried i but not getting
                i tried i but not getting
0                
            Comments
- 
            Welcome to Mibuso

Can you tell us what did you try?
Did you check STRPOS function?
http://msdn.microsoft.com/en-us/library/dd355417.aspx0 - 
            i want to select those customer No which are starting from 'E' from the customer table lookup so how can i do that?
so i have to code like if customer no stat from 'e' then.....0 - 
            Sir I think STRPOS will return Position But i want to search particular letter0
 - 
            [Topic moved from 'NAV Courses, Exams & Certification' to 'NAV/Navision Classic Client' forum]0
 - 
            If you get position 1 means you have Customer No. starting with e?0
 - 
            Depending on how you exactly want to do it, and i am assuming you want to check case-insensitive :
Check the the first character of a variable:UPPERCASE(Copystr(Value,1,1)) = 'E'
oruppercase(Value[1]) = 'E'
If you want to filter your table on it :setfilter("No.",'@%1*','E') ;0 - 
            Thank you Very much Sir I got it ....
                        0 - 
            i did
IF STRPOS(Cust."No.",'E')=1 then Begin
and i got it0 - 
            I have a bug . this E should not be case sensitive what should i do?0
 - 
            i gave you several ways, all case-insensitive...you should be able to derive from those what you need.0
 - 
            Yes Sir i got that thanks alot for your kind Reply0
 
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
 - 323 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
 

