home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: PASTECLC.PRG ⌐ª
- *⌐ª Function: ╓▒╜╙╢┴╚í╝╞╦π╞≈╡─╓╡╡─╫╙│╠╨≥ ⌐ª
- *⌐ª Calls: EXP13_4.PRG ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- PARAMETERS thisvar
- PUSH KEY CLEAR
- PRIVATE toolong, calcno
-
- * ░╤╝╞╦π╞≈╓╨╩²╓╡╫¬╗╗│╔╫╓╖√╨═, ╢╘╙┌╙╨╨í╩²╒▀╚í 4 ╬╗╨í╩²
- calcno = IIF(_CALCVALUE = INT(_CALCVALUE),;
- ALLTRIM(STR(_CALCVALUE,25,0)),;
- ALLTRIM(STR(_CALCVALUE,25,4)))
- toolong = .F.
- DO CASE
- CASE EMPTY(thisvar)
- WAIT WINDOW " ╝╞╦π╞≈╓╨╡─╓╡▓╗─▄╖┼╘┌╒Γ└∩. "
- CASE TYPE(thisvar) = "N"
- * ╩²╓╡╨═╫╓╢╬
- IF LEN(calcno) <= FSIZE(thisvar)
- REPLACE (thisvar) WITH _CALCVALUE
- ELSE
- toolong = .T.
- ENDIF
- CASE TYPE(thisvar) = "C"
- * ╫╓╖√╨═╫╓╢╬
- IF LEN(calcno) <= FSIZE(thisvar)
- REPLACE (thisvar) WITH calcno
- ELSE
- toolong = .T.
- ENDIF
- CASE TYPE(thisvar) = "M"
- * ▒╕╫ó╨═╫╓╢╬
- REPLACE (thisvar) with calcno ADDITIVE
- OTHERWISE
- * ╚╒╞┌╨═╗≥┬▀╝¡╨═╫╓╢╬
- WAIT WINDOW "╝╞╦π╞≈╡─╓╡▓╗─▄╖┼╘┌╒Γ└∩ "
- ENDCASE
- IF toolong
- WAIT WINDOW NOWAIT ;
- " ╝╞╦π╞≈╓╨╡─╓╡│¼╣²╒Γ╕÷╫╓╢╬╡─│ñ╢╚, ╞Σ╓╡╬¬: "+calcno
- ENDIF
- POP KEY
- RETURN