Table field is crazy
Posted: Sun Oct 05, 2008 3:22 pm
Hi !
Table field works the wrong side :
On a card I put 1 table field and 1 button
the script of the button :
on mouseUp
if the label of me is "Change price" then
set the locktext of fld "price" to false
answer "Write new data and click on Register"
set the label of me to "Register"
else
set the label of me to "Change price"
set the locktext of fld "price" to true
end if
end mouseUp
This script do not works well
on mouseUp
if the label of me is "Change price" then
set the locktext of fld "price" to true
answer "Write new data and click on Register"
set the label of me to "Register"
else
set the label of me to "Change price"
set the locktext of fld "price" to false
end if
end mouseUp
this script works but only if I don't click on the field
If I click on the field or change data I must repeat twice the job
Normal ?
Table field works the wrong side :
On a card I put 1 table field and 1 button
the script of the button :
on mouseUp
if the label of me is "Change price" then
set the locktext of fld "price" to false
answer "Write new data and click on Register"
set the label of me to "Register"
else
set the label of me to "Change price"
set the locktext of fld "price" to true
end if
end mouseUp
This script do not works well
on mouseUp
if the label of me is "Change price" then
set the locktext of fld "price" to true
answer "Write new data and click on Register"
set the label of me to "Register"
else
set the label of me to "Change price"
set the locktext of fld "price" to false
end if
end mouseUp
this script works but only if I don't click on the field
If I click on the field or change data I must repeat twice the job
Normal ?