Creation of a TextBox for Only one Digit bound from 0 to 9

1

Attached Files

The following files have been attached to this tutorial:

.capx

textbox-onedigit-ranged.capx

Download now 181.97 KB

Stats

2,031 visits, 2,836 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 1 Mar, 2014. Last updated 19 Feb, 2019

Hello,

Have you ever tried to use construct 2 as a way to provide a fully functional web formulary?

If so, you'll probably have found that it's not quite an easy task. Far from being a program to manage data in a scientific way, construct 2 is oriented to game management, graphics, animations and so on...

But it is not an impossible task. As you can find here, there is a way (Perhaps one among hundreds) to get a data interface for integer numbers from 0 to 9 in a clean way.

Here you can find the image:

And please, find attached the project's capx.

You'll find also an instance variable called buffer, wich allow you to manage the number obtained, turning it into a Str, a Int...etc...whatever.

I'm open to comments and further improvements of this code.

.CAPX

textbox-onedigit-ranged.capx

Download now 181.97 KB
  • 0 Comments

Want to leave a comment? Login or Register an account!