Jump to content

can anyone tell what's wrong in these code?


Recommended Posts

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]

Link to comment
Share on other sites

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