Compile error with sample code
Posted: Fri May 16, 2014 2:25 am
I am trying to use the standard script to connect to a MySQL database, but I am now getting a compiler error when trying to assign values to the database variables:
-- set up the connection parameters - edit these to suit your database
put "127.0.0.1" into tDatabaseAddress
Gives me this error:
button "Connect": compilation error at line 6 (Chunk: can't create a variable with that name (explicitVariables?) near "tDatabaseAddress", char 30
I have tried localhost or other IP addresses, it gets the same error.
The strange thing is that it used to work, and earlier stack that use that code work fine as long as I don't recompile.
I have taken the code straight from the SQL connect example and I get the same error.
I have re-downloaded and re-installed Livecode. It makes no difference.
If I comment this line out, I get the same error on the next line with tDatabaseName.
It seems like I am missing some definitions?
Thank you for any ideas.
-- set up the connection parameters - edit these to suit your database
put "127.0.0.1" into tDatabaseAddress
Gives me this error:
button "Connect": compilation error at line 6 (Chunk: can't create a variable with that name (explicitVariables?) near "tDatabaseAddress", char 30
I have tried localhost or other IP addresses, it gets the same error.
The strange thing is that it used to work, and earlier stack that use that code work fine as long as I don't recompile.
I have taken the code straight from the SQL connect example and I get the same error.
I have re-downloaded and re-installed Livecode. It makes no difference.
If I comment this line out, I get the same error on the next line with tDatabaseName.
It seems like I am missing some definitions?
Thank you for any ideas.