Page 1 of 1

Unable to retrieve Textbox value on MobileControl

Posted: Wed Dec 02, 2015 8:41 am
by mizi
pls help..
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
thanks..

Re: Unable to retrieve Textbox value on MobileControl

Posted: Wed Dec 02, 2015 8:58 am
by Dixie
Hi...

I have attached a stack to show you how to build a 'multiline' native fld in livecode...
To cut, paste, select, select all into the fld, click and hold down until the menu appears...

Re: Unable to retrieve Textbox value on MobileControl

Posted: Wed Dec 02, 2015 3:30 pm
by mizi
hi Dixie,

thanks so much..! really appreciate it..
its working now.. :D :D :D