On Jan 25, 2010, at 5:53 PM, nullPointer wrote:
>
> That is perfect for the moment, many thanks. Magritte is too much complicated
> for me, my brain is limited and cannot understand it :(
probably ;)
now in three sentences
- you have object (descriptions) that describes others (domain)
- you use descriptions to build programs that treat domain value with
the perspective of descriptions (saving data, displaying data, validating data)
so if a description says that a string is a date then you get readers,
writer, validation of 6-jan-2009.... all belonging to one object: the
dateDescription.
I have a textbox for work with strings and now a NumericEdit control for
>
> numbers; but now I´m trying use decimals, including in TransformBlock ->
> [:s | s select: [:c | c isDigit or:[ c = '.' ]]] and Float like type,
> but don´t works correctly.
>
> Is possible implement that mechanism catching the keypress event and cancel
> the event if will be a incorrect format? Perhaps with Date is the best
> option.
>
> Regards.
> --
> View this message in context:
> http://n2.nabble.com/Input-different-data-types-integers-or-datetimes-in-a-textbox-tp4442293p4455055.html
> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project