i'm still new in livecode & getting confused on Native MobileControls programming..
this is my code where I'm trying to PASTE any text in floating text input and trying to display the output at Scrolling Field but don't know where is my mistake since the result alway return the variable name.
Card Script
Code: Select all
global nDisplay
on inputCreate
global nDisplay
if "testinput" is among the lines of mobileControls() then
inputDelete
end if
mobileControlCreate "input", "testinput"
mobileControlSet "testinput", "rect", "16,74,393,196"
mobileControlSet "testinput", "visible", true
put mobileControlGet("testinput", "text") into field nDisplay
end inputCreate
Code: Select all
# Paste button
on MouseUp
inputCreate
end mouseUP
# Display button
on mouseUp
put nDisplay into field "sDisplay"
end mouseUp