Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a filetype
Message
From
05/09/2000 10:40:58
 
 
To
05/09/2000 10:17:51
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexico
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00412456
Message ID:
00412470
Views:
21
>How can i create my own filetype? I want to 'encapsulate' a word doc and an avi file (or whatever) into a single file with its own extension, and later on open the file and see the file contents.

All from VFP right? Well, to create the file you can do:

StrToFile(FileToStr('word.doc') + '!~!~MOF~!~!' + FileToStr('movie.avi'), 'MyNewFile.file')

Now you have two files in one. And you can parse them out in VFP almost the same way. Though, I wouldn't doubt it if Word can embed AVI files in it.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform