Mask in TfrEditControl
produsys
Brazil
Hi,
I'm want to put a Date Mask into a TfrEditControl on Dialog! But I don't know how make this!! Somebody help me!! Please!!
Ps.: Sorry for my poor english!
I'm want to put a Date Mask into a TfrEditControl on Dialog! But I don't know how make this!! Somebody help me!! Please!!
Ps.: Sorry for my poor english!
Comments
I'm want to make this for a Select in query where the date is greater than Edit2.Text and minor than Edit3.Text. Do you understand??
See my example code: It's for that I need the date mask, because if the user not type the date separator "/" or ".", mine Select returns null and the report... blank!
if my user not type anything, my Select will return all date. Understand??
to dateedit.text then all your user has to do is pick the date, you can initialize the date value in the onactivate event of the dialog if you want to supply a default date.
typical query sql statement
SELECT DISTINCT OrderNo, ShipDate, Subtot, GstTotal, PstTotal, InvTotal, Posted
FROM "orders.DB"
WHERE
(ShipDate >=:from)
AND (ShipDate <=:to)
AND (Posted = 'TRUE')
ORDER BY OrderNo, ShipDate, Subtot, GstTotal, PstTotal, InvTotal, Posted
from and to are parameters
in designer select query in obj inspector select params
in params editor left pane select the parameter in the datatype select date
select value add dateedit1.text. repeat for next param using dateedit2.text.
you can also parameterize your other selection criteria the same way.