Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Equivalent of PowerBuilder Edit Styles?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00057801
Message ID:
00057802
Views:
26
>I am trying to find out how to do something in VFP that I can easily do in PowerBuilder. In pb I can setup "edit sytles". In VFP this should probably be done via classes; however, I can not find any examples in VFP5.0 of this.
>
>Have I overlooked something?
>
>Has someone else created some classes similar?
>
>example: I want to create an edit for phone numbers; however, I do not want to store it on the area on the database setup. I want to store it in a class library so that I can change the class in the future and all the references to it in all database will immediately reflect this. On the database setup screen I will reference the class instead
>of hardcoding the (999)-999-9999 for example.
>
>Hope this is clear.

Carl, look at the inputmask property and the format property 'r'. The combination will give you what you want, and you can make a class out of it easily.

For a telephone number:
Inputmask: (999) 999-9999
Format: r
The result is stored as 6503450152, seen on the screen as (650) 345-0152

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform