Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Get the first line data from Multiline field

(0) ShareShare
ReportReport
Posted on by 3,851

Hi,

In my form having the multi line field user enter multiple  line data  but I want to get data from the first line alone.

is there any possibility to get?

Regards

veer

*This post is locked for comments

  • Martin Dráb Profile Picture
    233,561 Most Valuable Professional on at
    RE: Get the first line data from Multiline field

    True, that's easier.

  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at
    RE: Get the first line data from Multiline field

    Hi Veer

    Try also with SrLine(str string, int count)

    Retrieves a single line from a string that spans multiple lines

    msdn.microsoft.com/.../aa577258.aspx

  • Suggested answer
    Martin Dráb Profile Picture
    233,561 Most Valuable Professional on at
    RE: Get the first line data from Multiline field

    So you have a string field and you want to get a substring from the beginning the first line break. Correct? It should be now relatively clear how to implement it:

    #File
    int  pos = strFind(value, #DelimiterCRLF, 1, strLen(value));
    value = subStr(value, 1, pos - 1);

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans