Advertisement

Results for "Category: Files/ File Controls/ Input/ Output"

2002C #12438
Using LSet to make reading files easier

Have you ever needed to read a fixed length text file in Visual Basic? I have written quite a lot of applications where I will receive a fixed length text file from the mainframe. Tired of using the Left$, Right$ and Mid$ functions to parse each line for the individual elements of the line? Then read on. Oh, and thanks to Rockford Lhotka's, book on Visual Basic 6 Business Objects for giving me this idea.

2002C #12439
FileReady Function

Here is a useful function I created to solve a problem I was having in processing files for one of my applications. This function works better than trying to use the VB 'OPEN' command because it will always return the correct state of the file (even on a file that is being FTP'd at the time of the test.) See remarks in the FileReady function on it's use, as well as a sample at the end of this note.

2002C #12446
A FileExists Function

Checks to see if a file exists.

2002C #12462
VB Printing Tutorial

This may be some help if you want to print with VB. It does not cover everything to do with printing but is a good start.(...No PrintForm...) Using X,Y, Coordinates.

2002C #12499
Add and .ini or any file to an executable

Want to put an .ini file INSIDE your .exe file? Yep...it's another file attachment sample. I've commented it heavily for newbies. There are only 2 subs, very short and to the point. It should help get you off the ground if you've never done this before.

2002C #12512
Fastest FileLoading Techniquie for simple VB

In All the other methods I've tried, I run into a barrier(around 170K+) where loading a file suddenly becomes very slow. I've tried many methods found here and in books, and none have proven to work as well as I was looking for. After a long search I ended up spending some off-time figuring a way out myself. This is what I came up with.(speed increases from 20 seconds@170k to .4 seconds@170k)

2002C #12517
Count Lines in a Text File

This code will count all of the lines in a text File. This code will work on any sized file, and is quicker than using LineInput or the FSO.

2002C #12522
Create Windows Cabinet Files

Lets you create A windows cabinet file (.cab) containing any file(s) of YOUR choice. Since a cabinet file is something windows uses. Once you make it, you can give it to anyone and they can open/extract it without special files. PLEASE vote and/or leave feedback/comments on what you think.

2002C #12538
Path manipulation

There are many methods you can use to return certain parts of a fully qualified path to a file. Here is the SHORTEST and FASTEST way to 1) return just the path, 2) return just the filename, and 3) change the extension of a filename. The code is so short that it is probably faster to keep it inline than to create additional functions. (I've done so here to better illustrate the parameters.

2002C #12554
Ariel file icon extractor

This project demonstrates how to extract large and small icons associated with files into an imagelist and displaying them in a listview with the filenames. The SHGetFileInfo function of the shell32.dll library is used, which makes the job much easier than before. The ImageList_Draw function in comctl32.dll is used to draw the icon in a picture box,from where it is placed into the image list. Other submissions on PSC do an OK job on large icons, but the small icons are a mess. Not here! Credits to Peter Meier for his DelRecent posting.

2002C #12565
_Binary encoder...V2

File and binary encoder. Doesn't work that well with exe's but zip's and pictures work fine.

2002C #12617
CyberBot Books

You can save information about your books in it ! A nice example of database program.Included a kool sub-routine that creates shadow ! A Must Download ! ! !

2002C #12631
Excel Class Module with Demo

Project includes a very simple Class Module to talk to Excel with a demo project showing how to export the contents of a ListView to a workbook, and then create a pivot table from it along with page setup. The class module is pretty basic but I hope it helps some with ideas of how they can now add Export to Excel options to some of their projects. NOTE: The end user must have at least Excel 97 installed for this to work. KEYWORDS: EXCEL OBJECT CLASS WORKSHEET WORKBOOK PIVOT TABLE

2002C #12676
Parallel Port Programming LED's

This code will show you how to do basic parallel port programming. This particular example shows you how to light up LED's that are plugged into the parallel port.

2002C #12690
File creation..Read file for input

This little program teaches you how to create a file, open in, then put the data from the file into controls. This is great for beginners

2002C #12700
Check if a file exist!

This will check if a dam*n file exists the easy and "right" way! Plz vote for this code if you like it!

2002C #12733
File Type Association

Create file extension for your application.

2002C #12737
My Computer type File Browser

A VB clone of Windows My Computer, A file browser that shows the files Icon, or and icon of what type it is, It shows you how you can have a file directory in a image list, rather than the built in boring one.

2002C #12744
A File system object example FSO

Example of the File System Object

2002C #12749
FRX Restore.

Ever have an old program that you backed up the .FRMs\FRXs to, and suddenly notice that you need the pictures that where on that form. I bet its the worse feeling in the world, right up there with getting dumped. But wait! There is a light! FRX Restore will take that old dirty FRX File and turn it back into there old picture files! Pick and choose what pictures get extracted from the FRX data.

Languages
Top Categories
Global Discovery