Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Nov 14, 2019 2:15 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Printing the Mobile Number.
PostPosted: Mon Mar 12, 2012 2:34 am 
Offline

Joined: Mon Jan 16, 2012 8:08 am
Posts: 161
Location: India
Hi All,
I have a mobile number like 1233454626.I want to print the mobile number like

(123)345-4626666.How i will do that.


Top
 Profile  
Reply with quote  
 Post subject: Re: Printing the Mobile Number.
PostPosted: Mon Mar 12, 2012 3:09 am 
Offline

Joined: Tue Feb 14, 2012 5:39 am
Posts: 99
Location: Austria
If you want to display it in a textfield, then you may use the textfield.mask property (found in the help)

but if you need it in a popup, you'll need to check if the number got the right length and then do something like:

dim s as String = "("+number.left(3)+")"+...


and so on to build your own string


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group