Jump to content
Sign in to follow this  
McGod

Bit of a snag

Recommended Posts

McGod

Ok, I'm making an annoucement board for my clan.

So they will open this program, it will download an ini and display the information.

Now I'm making a program that will make the actual ini.

But since Im using a form the ini will look like

[main]
Annoucement="Hello everyone, how are you all?" [b] & @CRLF & [/b] "This is blah blah"

It would show two lines, but when i use GUICtrlRead it gives me the basic

Hello everyone, how are you all?

This is blah blah

Anyone know how to keep the @CRLF in the code?

Share this post


Link to post
Share on other sites
bluebearr

Write your INI like this:

[main]
Annoucement=Hello everyone, how are you all? @CRLF This is blah blah

Then, since you are probably not going to talk to your family about carriage returns :whistle: , you can then do this:

$inifile = @ScriptDir & "\test.ini"
$Text = IniRead($inifile, "main", "Annoucement", "")
if $Text <> "" Then
    $Text = StringReplace($Text, " @CRLF ", @CRLF)
    MsgBox(0, "Announcement", $Text)
EndIf

BlueBearrOddly enough, this is what I do for fun.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.