It is impossible to post relevant part of the code since the stack is really heavily scripted and there are many interdependencies. I wish I coul, but nothing of my code, other than what I already posted, would make sense to anybody.
What I am going to try is
a) check with another operation system (I have another Mac here)
b) check with a simple stack
Thank you, I will come back on the issue in a few minutes.
on mouseUp
put "2015/16-1, 9k1-Mu" into kurs
put kurs
answer Kurs
end mouseUp
It works as expected. So it cannot be an issue of LiveCode version or Mac OS version. It must have to do with my stack code. But how can that be? It should be impossible to alter the behavior of how "answer" and "put" see and return what is inside a variable?
I am in shame: I have worked with HyperCard and then LiveCode for about 20 years, coding highly complex stuff, but I never worked with debug mode, breakpoints and such - I just, don't know how to do that....
in Menu Development check "Script Debug Mode". Then you can either click in the handler you want to check left of the text and a red bullet appears (this is where the handler will stop and the debugger opens) or type "breakpoint" above the line of script you want to check in the debugger. The debugger has a pane "Variables" this is where you want to look. You can hover over the variable and it should show its content. Or you look in the variable pane and find your variable and to the right is the content of the variable. If the content is multi-line you can double- click on the value and a new window will open and show the complete content of the variable.
I remember when Hypercard did not have a debugger and I sprinkeld "play boing" etc over the code...
The debugger is really a big help if you want to know what is going on in your script
I did breakpoint the script and the variable kurs contains just wht is is supposed to contains in the variable watcher: "2015/16-1, 10k6-En"
BUT
When I copy and pasted the variables contents here into this post it read: " 015/16-1, 10k6-En"
Is that normal behavior? I mean "2" was what my answer dialog came up with and "2" is what is missing when I copy and pasted the variable here.
there is a problem. the data in the stack contains students and grades with fotos and addresses. I can't post that here. I could send it to you via mail an give you instructions on where to find the code and how to reproduce the error
But I will take a little and you would have to send your address, mine is (SORRY; deleted for safety reasons)
Jürgen
Last edited by jawall on Mon Nov 09, 2015 6:20 am, edited 1 time in total.