Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wwipstuff, XML and binary data
Message
De
15/07/2000 11:57:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00299404
Message ID:
00392883
Vues:
20
>Actually, I don't think it'll work with a cursor, because a cursor cannot be closed and in order to encrypt the file it must be closed. You'd have to copy the file to a physical file that can be closed then encrypt unfortunately.
>

Ok, you're right- I went back and looked at my method for this and it does exactly that- copies the cursor to file first. Funny though, when I wrote this, I did it with a copy for a completely different reason- to ensure that the cursor wasn't actually a filtered table.

This method is from my subclass of your wwHTML class-
	FUNCTION ReturnEncodedDBF
		********************************************
		* Creates an encoded string from the
		* currently selected cursor and sends it
		********************************************
		LOCAL lcDBF, loIP, llHasMemo, lcEncodedString
		IF EMPTY(ALIAS())
			RETURN .F.
		ENDIF		
		SET CLASSLIB TO d:\westwind\classes\wwIPStuff ADDI
		oIP = CREATEOBJECT('wwIPStuff')
		lcDBF = RIGHT(SYS(2015), 8) + ".dbf"
		COPY TO (lcDBF)
		lcMemo = FORCEEXT(lcDBF, "fpt")
		llHasMemo = FILE(lcmemo)
		lcEncodedString = oIP.EncodeDBF(lcDBF, llHasMemo)
		THIS.Send(lcEncodedString)
		ERASE (lcDBF)
		ERASE (lcMemo)
	ENDFUNC
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform