Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003
    Posts
    16

    Tip: Creating paragraphs from an INI file

    I found a cool way to get INI line, insert any number of paragraph marks and put the result in a multiline texbox.

    I searched on the forum for such thing and found nothing, so I think posting it is okay in case somebody requires it.

    in INI file:
    [Section]
    Desc1=This is first line;;this is second line;;;;third line
    ...

    Then:

    %Desc1% = INIFile.GetValue ("%SrcDir%\AUTORUN.INI", "Section", "Desc1")
    %Paragraph% = " "
    %Desc1% = String.Replace ("%Desc1%", ";;", "%Paragraph%")
    TextBoxObject[Description].SetText ("%Desc1%")

    Be sure to create a %Paragraph% variable that has a paragraph mark in it!

    Result, of course:

    This is first line
    this is second line

    third line

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Cool tip Lavrendi!

    Corey Milner
    Creative Director, Indigo Rose Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts