It's not that they've upscaled the existing system; more that they've reinvented it. But there are still plenty of legacy systems out there; hence my desire to simultaneously support both back-ends.
New systems do not have the BDE installed, which is why I want to use pure Interbase components...
I have an app that has a BDE back end. The people who write the suite that my software slots into have changed from using a Paradox BDE database to using an Interbase database.
So I've added Interbase support to my app, which is all well and good on a PC with both the BDE and Interbase client...
I have a database app, which must talk to both BDE and Interbase as a backend.
My problem is that I don't know how to tell whether or not BDE is installed on a PC. So, when my app starts on a PC without BDE, it throws an access violation or some equally unuseful error message. It then...
To get a look at what's going on, go to your Project | Options (ctrl-shift-F11), and on the Compiler page, make sure the Debugging options are all checked, and that the Optimize option is unchecked.
Then, breakpoint the line that's causing the problem. When you hit the breakpoint, hover the...
I noticed that if I set all the components Active to True, I got database records appearing in my DBGrid, right there at design time. But still no run. This, then, continued to reinforce the it's-a-streaming-problem concept.
So I messed around for a bit, getting nowhere, and eventually...
Hello Captain Typo: two typos in three characters. "gpr" should read "bpl".
-- Doug Burbidge mailto:dougburbidge@yahoo.com
http://home.iprimus.com.au/dougburbidge/
Hm, I see what you're saying.
Only one DCLIB*.bpl: DCLIB50.bpr in $(DELPHI)\bin; the one I built just a couple of days ago.
No ibex*.gpr; closest is ibevnt50.bpl, dated January 2000.
-- Doug Burbidge mailto:dougburbidge@yahoo.com
http://home.iprimus.com.au/dougburbidge/
Nope; I installed Interbase 6; then I installed VCLIB50.dpk and DCLIB50.dpk thta I got from Borland's web site, then I built the test app in Delphi 5 Pro Update Pack 1 from scratch, by reading along with http://www.ibphoenix.com/a496.htm
So I started the test app with nothing but the default...
Visual FoxPro is, I'm guessing, an interpreted language. Thus, using the mechanism you describe, you can pass a string to the interpreter, and ask it to find the function of that name and execute it.
Delphi is, of course, compiled. At compile time, the string names of functions have already...
I've installed Interbase 6 on my PC (it describes itself as WI-V6.0.1.0). I started getting error messages when I start up Delphi, about not being able to find entry points in, um, DCLIB50, I think. So I got some Interbase packages from Borland's web site, and compiled 'em, and installed the...
Thanks; that does the trick nicely.
Is that actually documented anywhere? -- Doug Burbidge mailto:dougburbidge@yahoo.com
http://home.iprimus.com.au/dougburbidge/
I have a line of code that says:
DM.LeagueDatabase.Execute('CREATE INDEX Game_ID ON ' + TableName + ' (Game, ID);', nil, False, nil);
It works fine, and the Game_ID secondary index is duly created. I have another line that says:
DM.LeagueDatabase.Execute('DROP INDEX Game_ID;', nil...
No, $I shouldn't make any difference; that's for direct file I/O stuff, rather than database stuff.
I'm really surprised that putting logic just before the Post, to check if ID is empty, isn't working for you.
Another possibility is that it's not the explicit Post that's causing the problem...
That error message sounds like you are posting a record to a table that has a field that requires a value, and you're not supplying said value.
You might want to put a little bit of logic just before you Post, saying something like, if ID is empty, then do something about it.
If it's only...
Sure. Mine is the Delphi VCL way; yours is the Windows API way.
Using Delphi's Visual component library is often shorter and more readable; but it may not give you as much control as a Windows API call, and there are some things you just can't do through the VCL, which means that you've got no...
The problem occurs when you have an event hooked to the SpinEdit's OnChange event, and that event reads the SpinEdit's value. As you say, the SpinEdit tries to convert '' to an integer, and then gets upset because '' is not a valid integer value.
It's not being caught by your exception handler...
For each of your forms, set the FormStyle in the form designer to fsStayOnTop.
Note that messing with this property while your app is running may have unpredictable effects -- sometimes your app may fail to stay on top -- so set it at design time. -- Doug Burbidge...
It's all about the registry entries. If you do something that blows away Delphi's registry values, such as reinstalling Windows, or such as Windows corrupting your user profile and thus forcing you to build a new login, that's where you'll wind up -- only the one component available.
You can...
Go Project | Project options | Compiler. In the Debug section, ensure that Debug information, Local symbols, and Reference info are all checked. If they're not, check 'em, check the Default box down the bottom of the dialog, and click OK.
Also ensure that your app does not contain a {$D-} or...
Create a TStringList, put all your strings in it, and use its Sort or CustomSort method:
var myStringArray: array [0..99] of string;
var myStringList: TStringList;
begin
myStringList := TStringList.Create;
for I := 0 to 99 do
myStringList.Add(myStringArray[I]);
myStringList.Sort...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.