Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / 15 NEW functions for FILE control (DBC and DBPRO - it couldn't get much easier!)

Author
Message
Underworld 1020
20
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 15th Aug 2005 00:35 Edited at: 15th Aug 2005 02:50
EDIT: Be sure to check out the IncodeFile and DecodeFile functions! I believe them to be unhackable, well they are as far as my skills go .

I stayed up the last couple of nights creating a set of functions
that make FIlE control much, much, much easier. There are a total
of 15 functions all together which allow you to have complete
control over writting, reading, and returning data in files. Also
keep in mind that these functions work in BOTH DBC and DBPRO, so
you won't have to worry about that because I've tested them in
both programs, and if you'd like to test it yourself then you can
very easily, since I've created a FULL DEMO that uses all 15
functions.

Here's a COMPLETE LIST of all 15 functions:


Here's a DETAILED DESCRIPTION and SYNTAX of all 15 functions:


Here's the 15 FUNCTION'S code:


Here's the DEMO code:


Now BE SURE to save the FUNCTIONS as a .dba file called FileFunctions,
and be sure to KEEP THAT FILE IN SAME DIRECTORY AS THE FILE THAT WILL USE
THE FUNCTIONS. Also MAKE SURE THAT YOU USE THE #INCLUDE command to include
the FileFunctions.dba file with your MAIN SCOURCE file.

I've also included a .zip file with this post that includes the
following in it:

-FileFunctions - Descriptions.txt
-FileFunctions - List.txt
-FileFunctions DEMO.dba
-FileFunctions.dba
-Thread Post.txt

If you just get the .zip file and open it up you can just run the
FileFunctions DEMO.dba in either DBC or DBPRO and test it out. Now I've
tested all 15 of these functions quite a bit, and I'm pretty sure that
I've fixed all the bugs, but if you do happen to find a bug, then please
report it to me as soon as possible. ENJOY!

Attachments

Login to view attachments
Underworld 1020
20
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 15th Aug 2005 00:43 Edited at: 15th Aug 2005 02:46
And here's a .exe of the demo file just in case you don't feel like opening DBC or DBPRO and running the code.

(File Attached To This Post)

EDIT: And if you need help with DBC's file commmands, the ones that are included with DBC and some of them in DBPRO then goto my site, and then click on tutorials, and you'll find the help you need there.

Attachments

Login to view attachments
The Final Postalman
19
Years of Service
User Offline
Joined: 14th Aug 2005
Location:
Posted: 15th Aug 2005 22:20
is it possible to load .png or .jpg files? if not is it possible to make a function to do so?
Underworld 1020
20
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 16th Aug 2005 01:24
Well, I might be able to make a function like say:

-MakeFileFromImage
-MakeImageFromFile

I'll let you know how it goes.

Underworld 1020
20
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 6th Sep 2005 04:27

Login to post a reply

Server time is: 2024-11-27 18:53:51
Your offset time is: 2024-11-27 18:53:51