I have a dbf where there is a field ( codice)
how I can load an random number to load a record
Regards
Best Regards, Saludos
Falconi Silvio
Falconi Silvio
I have a dbf where there is a field ( codice)
how I can load an random number to load a record
Regards
You may use nRandom( <nRange> ) --> nValue to create random numbers.
thanks antonio
but this func is of fw or harbour ?
FW/FWH
FUNCTION Unique()
LOCAL cNumeric:= STR (HB_RANDOMINT(1,10000) ,5)
// You may use any number instand of 10000
cNumeric := STRTRAN (cNumeric ," ","0")
RETURN( cNumeric)thanks but I must create a random number from a file dbf
on the file dbf i have a numeric field ( codice) :
use IMG alias IMG
totale:= img->(reccount())
Number:=nRnadom(totale)
Go Number
have you another idea ?
FUNCTION Unique(nTotale)
RETURN( HB_RANDOMINT(1,nTotale))thanks to all