Sign in to follow this  
Followers 0
bikikitty

can anyone tell what's wrong in these code?

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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

is 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]

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 :whistle:

"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 by Bert

Share this post


Link to post
Share on other sites

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!

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