Hi, pallegude,
No, you cannot do that, except...
You create a ZeroTo99Table that have one field (with
the same EDT) and fill the records with that field
value to "0".."99". Then, create EDT relation to
ZeroTo99Table.
The other way, is to put FormHelp property of the EDT
to a form that shows table control. Table control
should have row values numbers from "0" to "99". Then,
you must to add the following code for each table that
use the EDT on validateField method:
public boolean validateField(fieldId _fieldIdToCheck)
{
boolean ret;
MyEDT fieldValue;
ret = super(_fieldIdToCheck);
switch (_fieldIdToCheck)
{
case fieldname2id(this.TableId,"MyEDT") :
fieldValue = this.(fieldIdToCheck);
if (fieldValue < 0 || fieldValue > 99)
{
ret = checkFailed("0..99");
}
break;
}
return ret;
}
Good luck.
Regards,
Sonny Wibawa Adi, MBSCP, MCAD.NET, MCSD.NET, MCP
--- pallegude <[EMAIL PROTECTED]> wrote:
> I would like to create an integer that only accepts
> values from 0-99.
> I would think i had to create an extended datatype,
> but this doesn't
> seem to be possible.
>
> Ofcourse I can do it in the validate writing, but as
> it is a method to
> be used several places, it would be nice having an
> extended datatype.
> --
> Best regards
> Palle Gude
> Consultant
>
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---- LSpots keywords ?> ---- HM ADS ?>
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

