BC Friday Tips #25 Use Build-in Methods

Build-in Methods for Text

Here’s this week’s #BCFridayTips for #msdyn365bc developers.

💡 Did you know that each data type in AL has built-in instance methods?

Just press dot (.) after a variable to see what’s available!

For example, a Text variable gives you:
➡️ Contains
➡️ Replace
➡️ Remove
➡️ Split
➡️ Substring
➡️ ToUpper / ToLower
➡️ Trim

A Date variable provides:
➡️ Day
➡️ DayOfWeek
➡️ Month
➡️ WeekNo
➡️ Year

Why?
✅ Saves time. No need to reinvent the wheel.

Next time you’re handling data, check the built-in methods first!

thatnavguy

Experienced NZ-based NAV Developer and Consultant with 15+ years of experience leading multiple IT projects, performing business analyst, developing, implementing, and upgrading Dynamics NAV and Business Central. Passionate to deliver solution that focuses on user-friendly interface while keeping high standard of compliance with the needs.

You may also like...

1 Response

  1. Danny says:

    Didn’t know there are functions for Date type, thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *