3,103 questions
63 votes
6 answers
95k views
Delphi: StringList Delimiter is always a space character even if Delimiter is set
I am having trouble with the delimiter in the TStringList Class. Take a look: var s: string; sl: TStringList; begin sl := TStringList.Create; s := 'Users^foo bar^bar foo^foobar^barfoo'; sl....
61 votes
9 answers
29k views
Unit testing in Delphi - how are you doing it? [closed]
I'm wondering how the few Delphi Programming users here are doing unit testing, if any? Is there anything that integrates with the Delphi IDE that you've found works well? If not, what tools are you ...
42 votes
3 answers
149k views
ms sql xml data type convert to text
in MS Sql there are data types that are not supported by delphi 7, the xml datatype is one example. I wish to convert the XML datatype to Text datatype, so that i could handle it in delphi. Is ...
41 votes
6 answers
16k views
Antivirus False positive in my executable [closed]
I just ran into an annoying problem. Suddenly Avira AntiVir started to flag one executable from my software as being a virus. As the default action from almost any user is to click OK and Avira ...
37 votes
6 answers
22k views
How hard is it to migrate a project from Delphi 7 to Delphi XE?
Our company have a software that has been in development for over 10 years, so there are some really dated stuff in there. It's still quite functional and everything, but I see the new features on ...
36 votes
5 answers
18k views
wsMaximized forms do not appear maximized
Setting a form to WindowState = wsMaximized will sometimes cause the form to be maximized but not: Long-time bug: this is a question I first asked in the Borland newsgroups in 2003: Accepted fix for ...
35 votes
2 answers
2k views
How to hook a method to the Edit event in Delphi 7 IDE?
I'd like to automatically checkout a file when I start to edit it in Delphi 7 IDE. ClearCase is my version control system and I really hate the need to checkout a file before starting to edit. It ...
34 votes
2 answers
119k views
How to check if a string contains a substring in Delphi?
String content = "Jane"; String container = 'A.Sven,G.Jane,Jack'; // This is the string which i need to be searched with string content boolean containerContainsContent = StringUtils....
33 votes
6 answers
52k views
How can Delphi 'string' literals have more than 255 characters?
I'm working with Delphi 7 and Strings, and I came across this: For a string of default length, that is, declared simply as string, max size is always 255. A ShortString is never allowed to grow to ...
33 votes
6 answers
39k views
Form is hidden behind other forms when ShowModal is called
My application is based on modal forms. Main form opens one form with ShowModal, this form opens another with ShowModal, so we have stacked modal forms. There is sometimes a problem that when we call ...
30 votes
3 answers
13k views
How to get current method's name in Delphi 7?
Is there any way to know the name of a method I'm currently in? So that: procedure TMyObject.SomeMethod(); begin Writeln('my name is: ' + <hocus pocus>); end; would produce this output: my ...
29 votes
9 answers
28k views
Delphi won't run: license information found, but not valid
If I try to run Delphi 7, I get this frightening message: Register Delphi Borland license information was found, but it is not valid for Delphi. You can not run Delphi without this information. Click ...
28 votes
1 answer
10k views
How do I avoid UAC when my EXE file name contains the word "update"?
I noticed the following phenomenon: An executable built with Delphi 7 and part of the name including "Update" (e.g. "UpdateMyApp.exe") causes UAC to step in to display a warning like "do you want to ...
28 votes
3 answers
4k views
Arithmetic bitwise shift right "a shr b" with signed integers that stored in variables – wrong results! Internal Delphi’s bug?
I have a question (or more likely a bug report) about bit shifting behavior in Delphi (tested in Borland Delphi 7). Target: perform an "Arithmetic" bitwise shift right with any number. This means ...
27 votes
4 answers
69k views
How to use Animated Gif in a delphi form
I think theres no native support to gif animated images. How is the best way? any free component that allow that? I was thinking in using a TImage and a ImageList + Timer, but I need to export each ...