mIRC Home    About    Download    Register    News    Help

Print Thread
#88380 27/06/04 06:40 PM
Joined: Feb 2004
Posts: 201
J
Jae Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Feb 2004
Posts: 201
i foudn that when trying to load data from an ini that all control codes are stripper from the start of the line. is it intentional?
i fixed it by adding a normal charactor to the start of the line and using $right(readini_code,-1) .. a little work around for now.. but it'd be nice for it to work correctly.

Cheers

#88381 27/06/04 11:18 PM
Joined: Nov 2003
Posts: 228
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
mIRC has never saved control codes to ini files. A better way of saving information like that is storing it in a hash table and having the table load when mIRC starts and saved when mIRC is closing.

#88382 28/06/04 03:56 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Doing this alone is risky. You should save the table everytime there's a change, or at least more frequently than just saving it in the end. That's because in case mIRC closes with an error, the ON EXIT event won't be triggered.


* cold edits his posts 24/7
#88383 28/06/04 10:58 PM
Joined: Nov 2003
Posts: 228
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
Good point.

#88384 30/06/04 12:00 PM
Joined: Feb 2004
Posts: 201
J
Jae Offline OP
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Feb 2004
Posts: 201
Fact still remains it strips the control codes and shouldnt need to do so.


Link Copied to Clipboard