Hi, i have try to implement my solution but don't work
mx:Validator field="PfVO(vopf[0]).pfvopk.stagpf"
validate="checkRequired(event.validator, event.value,10)"
listener="lstag" />
<mx:Validator field="PfVO(vopf[0]).de50pf"
validate="checkRequired(event.validator, event.value,50)"
listener="lmodello" />
function checkRequired(validator: Validator, value: String,pos) : Void {
if(value==undefined)
validator.validationError("emptyValue", "Campo obbligatorio!");
else if( String( value ).length>pos)
validator.validationError("emptyValue", "lunghezza max
consentita "+pos+"!");
}
Can you help me
Devis
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/