Jump to content

List View Treating Variables As Text


Recommended Posts

I have the written the langauge below, Dealer is however a variale, playing is an array; this program treats them both as text. PLease advise how to get it to show a variable/array result

; LIST VIEW

$listView = GuiCtrlCreateListView("Position|Dealer|Playing", 0, 0, 400, 400)

GuiCtrlCreateListViewItem("1|$Dealer|$Playing[1]", $listView)

GuiCtrlCreateListViewItem("2|$Dealer|$Playing[2]", ", $listView)

Link to comment
Share on other sites

sure thing:

listView = GuiCtrlCreateListView("Position|Dealer|Playing", 0, 0, 400, 400)
GuiCtrlCreateListViewItem("1|"&$Dealer&"|"&$Playing[1], $listView)
GuiCtrlCreateListViewItem("2|"&$Dealer&"|"&$Playing[2],  $listView)

"$variable" is not equal to $variable:

$variable = 100
$var1 = $variable
$var2 = "$variable"
MsgBox(0, "", $var1)
MsgBox(0, "", $var2)

#)

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...