Sign in to follow this  
Followers 0
FireLordZi

Listview and .ini

2 posts in this topic

[OnlineBuddies]

turnof=Dayton (6 max) | $0.25/$0.50 | Pot Limit Hold'em;~1/31/2008 at 3:47:07 PM*Online

That's what my ini looks like for example. I extract the "Online" at the end from it but when I go to put it in my listview

it appears as a listview item that is missing the "O".

Here's my extraction method, does it have something to do with the way I stringtrimleft?

$_var = IniRead("C:\buddies.ini", "OnlineBuddies", "turnof", "")
$var0_ = StringSplit($_var, "~")
$var2_ = StringSplit($_var, ";")
$var3_ = StringSplit($_var, "*")
$_status = StringTrimLeft($var3_[UBound($var3_)-1], 1)
For $value_ In $var2_
    $dateitems_ = _GUICtrlListViewSetItemText($nListview, 0, 0, $_status)
Next

While Alive() {
	 DrinkWine();
}
AutoIt Programmer

Share this post


Link to post
Share on other sites



$_var = "Dayton (6 max) | $0.25/$0.50 | Pot Limit Hold'em;~1/31/2008 at 3:47:07 PM*Online"
$var0_ = StringSplit($_var, "~")
$var2_ = StringSplit($_var, ";")
$var3_ = StringSplit($_var, "*")


$_status = StringTrimLeft($var3_[UBound($var3_)-1], 1)
; right here you are stating string trim left "1"  ^^^   thats the "O"

MsgBox(0x0,"", $_status)

8)


NEWHeader1.png

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  
Followers 0