PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → I need help to generate Extensive number, can anyone help me?
I need help to generate Extensive number, can anyone help me?
Started by adrianoboller, Nov., 18 2014 2:25 PM - No answer
Registered member
3,660 messages
Popularité : +175 (223 votes)
Posted on November, 18 2014 - 2:25 PM
Procedure ExtensoNumero(LOCAL Simbolo, LOCAL Valor, LOCAL MoedaMedida, LOCAL FalarSN)

NumeroExtenso is string = ""
sExt is string = "33"
nUniw is int = 6
nUndw is int = 9
nDezw is int = 9
nCenw is int = 12
sUni is string = "um dois três quatrocinco seis sete oito nove "
sUnd is string = "dez onze doze treze quatorze quinze dezesseisdezessetedezoito dezenove "
sDez is string = "vinte trinta quarenta cinqüentasessenta setenta oitenta noventa "
sCen is string = "cento duzentos trezentos quatrocentosquinhentos seiscentos setecentos oitocentos novecentos "

IF Simbolo <> "" AND Valor <> "" AND MoedaMedida <> "" THEN

IF PositionOccurrence(Valor,",",firstRank) THEN
NumeroExtenso = Valor
NumeroExtenso = Replace(Valor, "," ," e ")
NumeroExtenso = NumeroExtenso + MoedaMedida
END

IF FalarSN = "" THEN
LerTexto(NumeroExtenso,"","","")
END

END

NOT OK!!!!!!!!!