Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2Gig Limit
Message
De
05/03/2003 14:58:28
 
 
À
04/03/2003 18:41:43
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00761269
Message ID:
00761736
Vues:
26
As you have heard, it applies to them all. Here is a utility I run everytime the app exits so I can verify the file sizes never get too large:
llok=checkfilesize()
IF !llok
	MESSAGEBOX('Your files need to be archived. Please contact Support.',0+48+4096,'Maximum file size exceeded')
ENDIF

FUNCTION checkfilesize
maxsize = 20000000
warnsize= 19998000
lltoobig=.F.
*--Location of tables
ddir="\profiler\data\"
*--Create an array to hold file list
lnfiles=ADIR(filelist,ddir+'*.*')
IF lnfiles>0
	FOR i = 1 TO ALEN(filelist,1)
		IF TYPE('filelist(i,2)')="N" .and. filelist(i,2)>warnsize
			STORE .T. to lltoobig
		ENDIF
	ENDFOR
ELSE
	MESSAGEBOX("No files were found!",16+4096,"Error!")
ENDIF
IF lltoobig
	RETURN .F.
ENDIF
RETURN .T.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform