Hope this time I need a break (or brake perhaps).
I want to toggle the following text, like in CRM companies is done with
the sortlabel, but it doesn’t work.
Replacing the if-statement by ELSE: same problem.
Something to do with globals?
if (elements.tekst_wijziging.text==“ron”)
{
elements.tekst_wijziging.text=“nop”
}
if (elements.tekst_wijziging.text==“nop”)
{
elements.tekst_wijzing.text=“ron”
}
I am so used to the exit-script command in FMP…
After checking the first if statement the mehods just proceeds.
No idea what went wrong with the else script.
This one does the job just fine.
(sorry guys).
if (elements.tekst_wijziging.text==“ron”)
{
elements.tekst_wijziging.text=“nop”;
}
else
{
elements.tekst_wijziging.text=“ron”
}
I was just a bit sooner!
The idea was to toggle a text with a button, just checking if this works.
First click: text becomes RON second click: text becomes NOP etc.
This is also done with the Sort example in the CRM, but there is
also a sort-command involved.
BTW is there a command to EXIT a method like in FMP?
Sorry Edward.
re: Exit record… well with debugger turned on, you can use the break option..simple huh - A fully functional USEFUL debugger!
But also within a looping method you can either continue to the next iteration of the loop or Break to exit the loop. Return exits the method but does not break it…