2009/1/24 Keith Hodges <keith_hodges(a)yahoo.co.uk>uk>:
Igor Stasenko wrote:
Another question,
what if i want from user to be able to choose one of possible values:
* string 'foo'
* string 'bar'
* instance of Point (and if choosen, ask to enter x,y values)
Your point class needs to have a description of its own, i.e.
descriptionX descriptionY.
Then when an edit form is presented it will be built from the descriptions
exactly, except one little thing: how i can tell that it accepts
either 'foo' or 'bar' or instance of Point?
MASingleOptionDescription?
Keith
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
Best regards,
Igor Stasenko AKA sig.