View articles in ‘Tips’ Category


files

Get width and height of a GIF image file

This function returns the width and height of a gif image file.

files

Get width and height of a JPEG image file

This function returns the width and height of a jpeg image file.

files

Search a directory tree for a specified file

Function returns -1 if the filename was not found, and returns the path if the file was found

files

Check if a file’s volume is NTFS

A function that returns true if a file's volume is NTFS, or false if not.

files

Read a certain line number from a text file

How to parse a file and return a specified line

files

How to check if a directory is empty

A stratightforward function to check if a directory is empty.

strings

Function to split string into array

Sometimes you need to split a string that has a certain delimiter, into an array list, so, here's a function to do just that.

sf

How to enable drag and drop in your application

Ever wondered how you can add drag and drop to your delphi software? Wonder no more, this is how to do it

database

How to color a specific cell in a DBGrid?

Color a specific cell in a DBGrid