quick_sliver007 Posted February 17, 2005 Share Posted February 17, 2005 For some reason I don't know, I always have trouble with getting the variable to work in a script after I declare it. Here is the script: ; LIST VIEW $maxlife = IniRead ( "character.ini", "character", "maxlife", "unknown" ) $listView = GuiCtrlCreateListView("Stats|Current|Max", 565, 10, 180, 80) GuiCtrlCreateListViewItem("Life|1|$maxlife, ", $listView) The trouble I have is with the variable $maxlife. For some reason in the list view it says $maxlife, not the value in the Ini. I don't know what to do. I tried it like ($maxlife), '$maxlife' and like "$maxlife" and it still doesn't work right. So how do I write it? If Anyone can help Then you have my thanks EndIF Else EndIF . Link to comment Share on other sites More sharing options...
buzz44 Posted February 17, 2005 Share Posted February 17, 2005 (edited) try this GuiCtrlCreateListViewItem("Life|1|" & $maxlife, $listView) Edited February 17, 2005 by burrup qq Link to comment Share on other sites More sharing options...
quick_sliver007 Posted February 17, 2005 Author Share Posted February 17, 2005 Thank you so much, that was one of the key parts of my script. Thank you again. . Link to comment Share on other sites More sharing options...
buzz44 Posted February 17, 2005 Share Posted February 17, 2005 Thank you so much, that was one of the key parts of my script. Thank you again.<{POST_SNAPBACK}>anytime qq Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now