Modal dialog not modal... any hints?

Jacques Hausser jacques.hausser at unil.ch
Wed Jan 20 06:11:33 EST 2010


Hi Tereza

That explains nothing, but could perhaps be an ad hoc solution (since I cannot reproduce the problem, I cannot test it). Try to modify your script as follows:

function YesOrNo pQuestion, pDefaultAnswer
  set the dialogData to empty -- to be sure
  set the Question of stack "AskYesOrNo"  to pQuestion
  set the DefaultAnswer of stack "AskYesOrNo" to pDefaultAnswer
  modal "AskYesOrNo"
  wait until the dialogData <> empty	
  return the dialogData
end YesOrNo

... I cross my fingers

Jacques

******************************************
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel/fax: 	++ 41 22 366 19 40
mobile:	++ 41 79 757 05 24
E-Mail:	jacques.hausser at unil.ch
*******************************************




More information about the use-livecode mailing list