Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Como colocar varios formatos de imagens em campo General
Message
From
22/09/2004 14:39:45
 
 
To
22/09/2004 14:20:06
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00942235
Message ID:
00945154
Views:
23
Você ja tentou algo como:
PROCEDURE diskspace_ok
PARAMETERS p_qual

IF p_qual = 1
	dir_2 = ""
ELSE
	dir_2 = "BKP\"
ENDIF

DIMENSION vet_dbf(1)
DIMENSION vet_cdx(1)
DIMENSION vet_fpt(1)

xcriou = ADIR(vet_dbf,xdir+dir_2+"*.dbf")

IF xcriou = 0
   DO dctaviso
   DO msg1bot WITH "Não há arquivos a serem verificados !"
	RETURN .F.
ENDIF

= ADIR(vet_cdx,xdir+dir_2+"*.cdx")
= ADIR(vet_fpt,xdir+dir_2+"*.fpt")

tam_arqs = 0

FOR i = 1 TO ALEN(vet_dbf,1)
	tam_arqs = tam_arqs + vet_dbf(i,2)
NEXT
FOR i = 1 TO ALEN(vet_cdx,1)
	tam_arqs = tam_arqs + vet_cdx(i,2)
NEXT
FOR i = 1 TO ALEN(vet_fpt,1)
	tam_arqs = tam_arqs + vet_fpt(i,2)
NEXT

IF tam_arqs >= DISKSPACE(iif(at(":",xdir+dir_2)>0,substr(xdir+dir_2,1,2),""))
   DO dctaviso
   DO msg1bot WITH "Não há espaço suficiente em disco."
   RETURN .F.
ENDIF

RETURN .T.
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform