I have a dbf where there is a field ( codice)
how I can load an random number to load a record
Regards
random with a dbf
random with a dbf
Best Regards, Saludos
Falconi Silvio
Falconi Silvio
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Silvio
Try the folowing:
Regards
Dionisis
Try the folowing:
Code: Select all
FUNCTION Unique()
LOCAL cNumeric:= STR (HB_RANDOMINT(1,10000) ,5)
// You may use any number instand of 10000
cNumeric := STRTRAN (cNumeric ," ","0")
RETURN( cNumeric)
Dionisis
Hello Silvio again
Try the following :
Regards
Dionisis
Try the following :
Code: Select all
FUNCTION Unique(nTotale)
RETURN( HB_RANDOMINT(1,nTotale))
Dionisis