Moderator: Enrico Maria Giordano
1) come limitare l'input della variabile a max 20 caratteri ?
solving wrote:salve Antonio
second question :
Questa la mia funzione in Clipper :
*-------------------------------------------------- VEDI_P
STATIC FUNCTION Vedi_P( fDbf, fNtx )
LOCAL GetList := {}
LOCAL cBar := SPACE(13) ,;
cDes := SPACE(15) ,;
nPre := 0, xBar := ""
USE( fDbf ) INDEX (fNtx) ALIAS Dati NEW
DO WHILE .T.
CLEAR
cBar := SPACE(13)
@ 0,0 SAY "Vedi Prezzo"
@ 1,0 SAY "Cod " GET cBar PICTURE "@!"
READ
xBar := ALLTRIM( cBar )
IF !EMPTY( xBar )
IF Dati->( DBSEEK(xBar) )
cBar := Dati->CODICE
cDes := Dati->DESC
nPre := Dati->PRE
@ 2,0 SAY "Codice " + cBar
@ 3,0 SAY "Desc. " + cDes
@ 4,0 SAY "Prezzo " + ALLTRIM( TRANSFORM(nPre,"99999.999") )
ELSE
@ 2,0 SAY SPACE(40)
@ 3,0 SAY SPACE(40)
@ 4,0 SAY SPACE(40)
@ 2,0 SAY "-Non Trovato-"
ENDIF
@ 3,0 SAY "Premi Enter"
INKEY(0)
ELSE
EXIT
ENDIF
ENDDO
Dati->( DBCLOSEAREA() )
RETURN NIL
Come Convertire in fivetouch ?
Grazie
Return to All products support
Users browsing this forum: No registered users and 5 guests