Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 15 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 8.5

COLUMN

Masking

Working with TextField Masks

Issue: 8.5 (July/August 2010)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 17,885
Starting Page Number: 53
Article Number: 8508
Resource File(s):

Download Icon 8508.zip Updated: 2010-07-05 16:14:46

Related Link(s): None

Excerpt of article text...

An often overlooked but extremely powerful feature of REALbasic's TextField control is its mask property. The mask allow you to specify, in advance, what types of data the field can handle. It's great for forcing data to be well-formatted, such as telephone numbers and Zip codes that have a specific format (though you should be aware that different countries often have different formatting). However, masking is so powerful it can be intimidating if you haven't used it, so today we're going to explore the feature in detail.

In principle, masking is simple. You just build a string of placeholder characters and stick it in a textfield's mask property. You're done. In practice, those placeholders can be tricky business and you may still need to check for errors and do some post-entry data massaging.

In the Old Days

...End of Excerpt. Please purchase the magazine to read the full article.