EditMask in DBEdit

When you add all fields in a table into a unit you have certains facilities like EditMask but you lose  compatibility because Delphi imports a lot of info from Database into your unit. So in some cases we prefer not to add fields into our unit but i still would like to have at least the facilities of a property like EditMask. How could we find a way around this?

rarigoAsked:
Who is Participating?
 
kretzschmarConnect With a Mentor Commented:
hi rarigo,

what about

table1.FieldByName('AFieldName').EditMask := WhatEverMask;

somewhere in your code (by the formcreate-event for example)

meikl
0
 
rarigoAuthor Commented:
Why not? How couldn't I think of that? Thanks very much meikl, you helped a lot.


Tchau,
Reginaldo
0
All Courses

From novice to tech pro — start learning today.