bikikitty Posted July 8, 2007 Share Posted July 8, 2007 CODE#include <Array.au3> $lvitem=1 Tried to run it then got error message: Cannot assign values to constants.: $lvitem=1 ^ ERROR My autoit version: 3.4.9 Link to comment Share on other sites More sharing options...
MerkurAlex Posted July 8, 2007 Share Posted July 8, 2007 CODE#include <Array.au3>$lvitem=1Tried to run it then got error message:Cannot assign values to constants.: $lvitem=1 ^ ERRORMy autoit version: 3.4.9is that all the code? cause if so there doesnt seem to be anything wrong if you want help you will need to post more or all of the code used [quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote] Link to comment Share on other sites More sharing options...
BrettF Posted July 8, 2007 Share Posted July 8, 2007 I imagine the $lvitem is already declared as a constant in array.au3?? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
XoloX Posted July 8, 2007 Share Posted July 8, 2007 Nothing that i see wrong....it gives me no errors when i complied it....i have the version v3.2.2.0 ......shouldnt give u a prblm in assigning variables atleast! Link to comment Share on other sites More sharing options...
BrettF Posted July 8, 2007 Share Posted July 8, 2007 (edited) #include-once#include <GuiConstants.au3>#include <GuiListView.au3>Global Const $LVITEM = "int;int;int;int;int;ptr;int;int;int;int"Your answer??EDIT: Maybe should explain "Cannot assign values to constants"Since you included Array.au3, which then includes GuiListView.au3, $LVITEM was already declared as a constant.This should also answer it:Once created, you cannot change the value of a constant. Also, you cannot change an existing variable into a constant. Edited July 8, 2007 by Bert Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
bikikitty Posted July 8, 2007 Author Share Posted July 8, 2007 Wow~~ It seems GuiListView.au3 have some changes in version 3.4.9 because I didn't get this error in old versions. Thanks guys! 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