Unable to retrieve Textbox value on MobileControl

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
mizi
Posts: 4
Joined: Wed Dec 02, 2015 8:10 am

Unable to retrieve Textbox value on MobileControl

Post by mizi » Wed Dec 02, 2015 8:41 am

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..

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Unable to retrieve Textbox value on MobileControl

Post by Dixie » Wed Dec 02, 2015 8:58 am

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...
Attachments
multiline.livecode.zip
(2.05 KiB) Downloaded 227 times

mizi
Posts: 4
Joined: Wed Dec 02, 2015 8:10 am

Re: Unable to retrieve Textbox value on MobileControl

Post by mizi » Wed Dec 02, 2015 3:30 pm

hi Dixie,

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

Post Reply