Can't delete year as default value

You found an error in the program ? Report it here
Post Reply
bmm
Posts: 10
Joined: 2002-07-27 08:57:27
Location: Denmark

Can't delete year as default value

Post by bmm »

Hi

I have been bug-hunting because of some weird behaviour. :/ But I think I have found the bug. :)

It is not possible to delete the default value for Year permanently. If there is no default value for Year before opening AMC, the program will set the default value for Year to current Year.

I can edit the default value to another value (like 1999) and this is remembered across sessions. But if I delete the default value for Year the program only remembers this until I restart AMC. Then default value is back to 2002.

I think this may be the cause of my original problem but I'm not sure. I had this check as part of a script:

Code: Select all

if GetField(fieldYear) = '' then
  SetField(fieldYear, Value);
I know that this should only have an effect when running through ordinary scripting as AMC doesn't read most values when using "Get information from script" as you mentioned in an earlier topic.

But the result when running the script through "Get information from script" is that AMC suggest Year = 2002 no matter what value I get from the webpage. I have also learned that it still suggest 2002 even though I have choosen another default value in preferences.
antp
Site Admin
Posts: 9630
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

You are right, that's a bug :o
It will be corrected next time I'll update the file on the server (within few days)
Not sure that it will resolve your script problem, but it will allow to have an empty field as default year
Post Reply