Jump to content

Listview and .ini


Recommended Posts

[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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...