PaletteBar is a alternative component palette for Delphi 6, Delphi 7 and C++Builder 6, featuring fast access to the installed components. It offers many extension the common component palette in the Delphi IDE.
The good old case statement has one big handicap: You can not use it with strings as operators, only integers can be used. With a little tricky procedure, we can use strings as well as integers as operators for a case statement.
You know the problem: A simple type mismatch and the search in the database goes fail, because the search strings did not match … This function compares the single characters, counts the identical characters and calculates a procentual value, how similar the both strings are.
Sometimes you need a little bitmanipulation, but you are worried about all those AND, OR, XOR, SHL and SHR? So why don't you give a simple but smart set a chance?
IntToStr and StrToInt are nice functions, but if you are dealing with other number systems then binarie, decimal or sedecimal you have to do this by yourself. Here is a solution for this.
… or where is the substring? The old fashioned Pos function is the most common way for searching in a string. But it always begins on the start of the string and so its a little bit useless to search behind the first position of the string.
How to copy, move or delete files windows like? The answer is simple: Let the shell do it for you! With the following function it’s an easy job!
Isn’t it boring? All those big programs use sounds in Messageboxes, why not your’s? Take this litte routine to replace the old MessageDlg and listen!
In Delphi you have many ways to manipulate text files. But all of these have a handicap: You must read the whole file (StringList) or you can only access data sequential (Assign/Readln). But there is an alternative methode to access big files: Memory Mapped Files (MFF).
Real windows applications must be able to "remember" it’s settings like window position and size, selections or the input of text fields when it’s started again. For position and size you can find a bunch of components on the internet. For other things you have to do some aweful inifile or registry operations - not much comfort at all.
Each bigger Windows application maintains a "MRU" list (most recently used) or a list of currently opend windows, files etc.. To do this by "hand" seems to be a complicated story. TFlexMenu component enables you to add or remove itmes on a menu dynamicly.
Online seit 7184 Tagen. (Start am 19.11.1998)
Copyright © 1998 - 2018 by Peter R. Hellinger
Alle Rechte vorbehalten