Serious Runtime problem
Posted: Thu Mar 07, 2019 12:44 pm
I have a serious runtime problem. In the runtime one script is not behaving as in the IDE.
The script is about inserting records in the database, for that I specify the global:tSQL and the global: tDBName
So I have a simple line in the script: put "mamsdocument" into tDBName.
In the IDE version the script is running as it should, no problem at all, but in the runtime version it is totally different.
In the runtime tDBName gets another value "mamsview", which is another database name.
This "mamsview" database also exists, but is not used at all in this proces.
So "mamsview" is coming from somewhere, but I can't find it.
I have put the whole script from the card level to the substack level, and then also to the main stack level
But when the script is running the line: " put "mamsdocument" into tDBName " is not effected.
"mamsview" stays in the global tDBName
The consequence is that no record is created in the database.
I have many other scripts communicating with the MySQL database and there I have no problem at all.
I have also looked into all the views, and there was one which was giving an error. So I replaced that with a new one. But it had no effect.
The script is about inserting records in the database, for that I specify the global:tSQL and the global: tDBName
So I have a simple line in the script: put "mamsdocument" into tDBName.
In the IDE version the script is running as it should, no problem at all, but in the runtime version it is totally different.
In the runtime tDBName gets another value "mamsview", which is another database name.
This "mamsview" database also exists, but is not used at all in this proces.
So "mamsview" is coming from somewhere, but I can't find it.
I have put the whole script from the card level to the substack level, and then also to the main stack level
But when the script is running the line: " put "mamsdocument" into tDBName " is not effected.
"mamsview" stays in the global tDBName
The consequence is that no record is created in the database.

I have many other scripts communicating with the MySQL database and there I have no problem at all.
I have also looked into all the views, and there was one which was giving an error. So I replaced that with a new one. But it had no effect.