Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Taking input from user.. please help
Started by zzz.khan1 Mar 18 2016 01:49 PM

1 reply to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

zzz.khan1

[GLOBAL: userInfoPane.html]
zzz.khan1
  • Observer

  • 1 posts
  • Corona SDK

I want to design an app which calculate area of square.

I want to take input from user(length of sides) , then use that input to calculate area and print the result on screen.

Can someone help me. Please

[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,508 posts
  • Corona SDK

You'll need to implement a couple native text fields for input:

 

https://docs.coronalabs.com/daily/api/library/native/newTextField.html

 

and a text object to show the output: 

https://docs.coronalabs.com/daily/api/library/display/newText.html




[topic_controls]
[/topic_controls]