Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5997629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:17:28+00:00 2026-05-23T00:17:28+00:00

I am building a small app in Lazarus and need a parse function based

  • 0

I am building a small app in Lazarus and need a parse function based on the underscore. For example:

array := Split(string, delimiter);

So string = "this_is_the_first_post" and delimiter is the underscore resulting in the array being returned as:

array[0] = this
array[1] = is
array[2] = the
array[3] = first
array[4] = post

Any one has any idea how to go about this? I have tried a few code examples and it always throws an error.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:17:29+00:00Added an answer on May 23, 2026 at 12:17 am

    You can use the following code:

    var
      List1: TStringList;    
    begin
      List1 := TStringList.Create;    
      try
        List1.Delimiter := '_';
        List1.DelimitedText := 'this_is_the_first_post';
    
        ShowMessage(List1[0]);
        ShowMessage(List1[1]);
        ShowMessage(List1[2]);
        ShowMessage(List1[3]);
        ShowMessage(List1[4]);
      finally
        List1.Free;
      end;
    end;
    

    In this example the output will be shown as a set of messages but you get the general idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a small rails app and I need a way to generate
I am building a small wpf app in C#. When a button gets clicked
I'm building a small web app in PHP that stores some information in a
I'm building a web-app that handles internal emails and other frequent small-to-medium sized chunks
I am building small app that will only display products in various categories. And
I'm building a small app that gives me the free space available on my
I am building a small app as a service in django and now is
I am building a small app which captures mouse clicks. I wrote the prototype
I'm building a small app with ASP.NET MVC and I'm using the ASP.NET membership
I'm building this small java applet in which I need a JPanel which will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.