Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 500
Search took 0.13 seconds.
Search: Posts Made By: AceOmega
Forum: General 05-12-2006, 11:50 AM
Replies: 1
Views: 1,150
Posted By AceOmega
RE: TADOConnection.GetProcedureNames()

TADOConnection is a ANSII 92 standard only function which means it will not be able to identify the type of procedures because they very from database system to database system. This does not mean...
Forum: General 05-12-2006, 11:33 AM
Replies: 6
Views: 1,108
Posted By AceOmega
RE: How to display all of records from database to running text.

With out any formatting it is going to look bad be hard to parse but here is some code to get you started....


var
AFile : TextFile;
Loop : Integer;
begin
AssignFile(AFile,...
Forum: General 05-11-2006, 02:42 PM
Replies: 3
Views: 800
Posted By AceOmega
ExstractPath

I am using Report Builder Pascal and it does not have a Path parser. Does any one have a quick copy of code for extracting paths that I can use. I can write my own but there is many ways to do this...
Forum: General 05-11-2006, 02:24 PM
Replies: 3
Views: 2,310
Posted By AceOmega
RE: Filtering a ComboBox

Use this in your OnDropDown event of your combo box...


procedure TForm1.ComboBox1DropDown(Sender: TObject);
var
Year, Month, Day : Word;
Loop : Integer;
begin
DecodeDate(Date, Year,...
Forum: DB-Aware 05-11-2006, 02:02 PM
Replies: 2
Views: 3,245
Posted By AceOmega
RE: how to find string in TDBGrid

On the TTable or TQuery that your TDBGrid is tied to do this...



Var
Found : Boolean;
DataToCheck : String;
Begin
Found := False;
DataToCheck := '';
Forum: General 05-10-2006, 10:42 AM
Replies: 6
Views: 1,108
Posted By AceOmega
RE: How to display all of records from database to running text.

What do you mean by "Running" text. Do you want it to update your text file every time a change is made to the database?

Also, how do you want it formatted? Do you want tabs between each column...
Forum: General 04-14-2006, 06:38 AM
Replies: 8
Views: 2,552
Posted By AceOmega
RE: Auto Populate Database Login Prompt Help

From Delphi's help...

Most dataset components can connect directly to a database server. Once connected, the dataset communicates with the server automatically. When you open the dataset, it...
Forum: General 04-14-2006, 06:24 AM
Replies: 8
Views: 2,552
Posted By AceOmega
RE: Auto Populate Database Login Prompt Help

You tie your existing tTables to a Tdatabase. You do not need to remove them. Look TDatabase under Delphi help.
Forum: General 04-14-2006, 06:23 AM
Replies: 8
Views: 2,552
Posted By AceOmega
RE: Auto Populate Database Login Prompt Help

You tie your existing tTables to a Tdatabase. You do not need to remove them. Look TDatabase under Delphi help.
Forum: General 04-13-2006, 09:30 AM
Replies: 2
Views: 1,157
Posted By AceOmega
RE: How to print in two side page automatic

You really should not start another thread each time. Keep it going under...

http://www.delphipages.com/threads/thread.cfm?ID=162930&G=162930

besides, did...

report.Printer.Duplex := True;
...
Forum: General 04-13-2006, 07:48 AM
Replies: 1
Views: 986
Posted By AceOmega
RE: [Fatal Error] Form1.pas(126): Internal error: E1508

Can you show us line 126 of the Form1.pas unit so we can see which line it blewup in. Better yet, show us the hole procedure. Need code to help.
Forum: General 04-13-2006, 06:23 AM
Replies: 7
Views: 935
Posted By AceOmega
RE: query?

Yes because you are using ADOTable. You have to use ADOQuery to use the SQL they suggested. I would also recommend you do not use ADOTable, but with ADOTable you could use Mikes suggestion with...
Forum: General 04-12-2006, 02:50 PM
Replies: 6
Views: 1,366
Posted By AceOmega
RE: Using Delphi to resurrect

I have seen this done without having to rewrite the API. You just make a Service application that hooks into all the open Windows.
Forum: General 04-12-2006, 02:17 PM
Replies: 6
Views: 6,025
Posted By AceOmega
RE: How to print in two side page automatic

Here...


report.Printer.Duplex := True;
Forum: General 04-12-2006, 02:09 PM
Replies: 6
Views: 6,025
Posted By AceOmega
RE: How to print in two side page automatic

I don't use Quick Reports because they are not pwerfull enough for what I do. I use Report Builder Pro. The way I print two sided is by going into the Page Setup of my report and Selecting Horizontal...
Forum: General 04-12-2006, 12:33 PM
Replies: 8
Views: 1,293
Posted By AceOmega
RE: Canvas.

Jasser wrote...

"...I am drawing shadows for the edit boxes..."

You might want to read the other posts.
Forum: General 04-12-2006, 11:07 AM
Replies: 8
Views: 2,552
Posted By AceOmega
RE: Auto Populate Database Login Prompt Help

There is more than one way to skin this cat though. Check this thread out...

http://www.delphipages.com/threads/thread.cfm?ID=139076&G=139076
Forum: General 04-12-2006, 10:52 AM
Replies: 8
Views: 2,552
Posted By AceOmega
RE: Auto Populate Database Login Prompt Help

Oh I forgot, you will need to set the "Connected" to true to connect to your database using these settings. Just put it in your FormCreate event.
Forum: General 04-12-2006, 10:46 AM
Replies: 8
Views: 2,552
Posted By AceOmega
RE: Auto Populate Database Login Prompt Help

Put a TDatabase on your Form. Then on the TDatabase set the "LoginPrompt" property to False. In the "Params" put in...

USERNAME=SYSDBA
PASSWORD=masterkey

I use interbase in which these are the...
Forum: General 04-12-2006, 08:48 AM
Replies: 9
Views: 3,104
Posted By AceOmega
RE: System Error. Code: 14.Not enough storage

Man that is wierd. Are you sure this line of code is not inside of some kind of loop that is not terminating, like a While Not condition and the condition is never being met whihc is causing your...
Forum: General 04-12-2006, 08:37 AM
Replies: 8
Views: 1,293
Posted By AceOmega
RE: Canvas.

Put the code in your OnPaint event.
Forum: General 04-12-2006, 08:22 AM
Replies: 8
Views: 1,293
Posted By AceOmega
RE: Canvas.

Who's Cnavas are you Drawing on and when are you doing it?

If you do it on the Objects "OnDraw" event then it will stay because this event will fire every time the object is refreshed.
Forum: General 04-12-2006, 06:54 AM
Replies: 3
Views: 983
Posted By AceOmega
RE: basic question about enumerated type

Sounds like what you really want to use is a Record type like so...


Type
TCustNames = Record
Name : String;
Value : Integer;
end;

Var
Forum: General 04-11-2006, 09:04 AM
Replies: 9
Views: 3,104
Posted By AceOmega
RE: System Error. Code: 14.Not enough storage

What kind of Network is this on? We use to have similer errors a while back with our Novell users because the Directory our application was installed into had space limitation setup by Novell for...
Forum: General 04-11-2006, 06:38 AM
Replies: 6
Views: 1,283
Posted By AceOmega
Forum: General 04-10-2006, 10:46 AM
Replies: 6
Views: 1,283
Posted By AceOmega
RE: Problem with trigger and auto increment generator.

Really. Where is your "CLI_ID" field? Maybe your trigger should be...


CREATE TRIGGER TRG_INC_CLIENT
FOR CLIENT ACTIVE BEFORE INSERT POSITIO 0
AS
BEGIN
IF(NEW.CODCLI IS NULL) THEN
...
Forum: General 04-10-2006, 10:00 AM
Replies: 1
Views: 915
Posted By AceOmega
RE: Problems with proxy list scanner

You need to move "c2:=1;" out side of your while loop because you keep reseting it back to 1.
Forum: General 04-10-2006, 09:55 AM
Replies: 6
Views: 1,283
Posted By AceOmega
RE: Problem with trigger and auto increment generator.

Your trigger looks fine. Can you show us the CREATE TABLE metadata. I am betting you have a default setup on this field. Also, are you using the BDE? If so then don't. It has bugs when it comes to...
Forum: General 04-07-2006, 02:22 PM
Replies: 4
Views: 1,025
Posted By AceOmega
RE: Interbase to Oracle Migration

It should still work for you. There may be a few new commands like Coalesce whic are in the new version of Interbase that will not be covered by this artical. I would get a book on both Interbase and...
Forum: General 04-07-2006, 02:17 PM
Replies: 6
Views: 1,239
Posted By AceOmega
RE: Problem with default values on TField

I thought so. Its like I said. The IBTable is for backwords compatability and some functions that where for old sequential databases will not work on SQL databases.
Forum: General 04-07-2006, 08:31 AM
Replies: 6
Views: 1,239
Posted By AceOmega
RE: Problem with default values on TField

Is use TADOQuery or TIBQuery to access my Interbase Database. Table items are buggy and seem to be made to be backwords compadable with the old non-SQL databases so if you upgraded from Paradox you...
Forum: General 04-07-2006, 08:23 AM
Replies: 5
Views: 1,140
Posted By AceOmega
RE: Changes to TIBDataset table lost when table closed

Is "dsStock" setup as a transaction or a chased update? If so then you will need to commit your changes before closing. See if you have a...

dsStock.Commit;

or

dsStock.Updatebatch;
...
Forum: General 04-07-2006, 08:17 AM
Replies: 4
Views: 799
Posted By AceOmega
RE: Firewall and Client Server Databases?

If you don't want to turn off the firewall all together, Firbird uses port 3050 by default. Go into the Windows Firewall and add an exception for port 3050.
Forum: General 04-07-2006, 08:13 AM
Replies: 4
Views: 1,025
Posted By AceOmega
RE: Interbase to Oracle Migration

How complex is your Interbase database? Does it have Triggers or Stored Procedures? If not then you should be able to get the Meta Data Schema from your IBConsole and take it over to Oracles console...
Forum: General 04-06-2006, 10:44 AM
Replies: 10
Views: 1,188
Posted By AceOmega
RE: Math with dates.How?

What, it works fine for me....


procedure TForm1.Button23Click(Sender: TObject);
Var
Year,Month,Day : Word;
NewDate : TDate;
Begin
DecodeDate(Date,Year,Month,Day);
NewDate :=...
Forum: General 04-06-2006, 09:56 AM
Replies: 10
Views: 1,188
Posted By AceOmega
RE: Math with dates.How?

Um is that not what I said?

http://www.delphipages.com/threads/thread.cfm?ID=162568&G=162555
Forum: General 04-06-2006, 09:17 AM
Replies: 10
Views: 1,188
Posted By AceOmega
RE: Math with dates.How?

Also make sure you are doing...

DecodeDate(Date,Year,Month,Day);

not

DecodeDate(Date,Day,Month,Year);
Forum: General 04-06-2006, 09:10 AM
Replies: 10
Views: 1,188
Posted By AceOmega
RE: Math with dates.How?

Jasser fixed it for me. Use...

NewDate := EncodeDate(Year,Month+6,Day);

Thats what I get for typeing it off the top of my head with out testing it. Sorry.
Forum: General 04-06-2006, 08:12 AM
Replies: 10
Views: 1,188
Posted By AceOmega
RE: Math with dates.How?

Use DecodeDate like so...

Var
Year,Month,Day : Word;
NewDate : TDate;
Begin
DecodeDate(Date,Day,Month,Year);
EncodeDate(NewDate,Day,Month+6,Year);
ShowMessage('It will be '+
...
Forum: General 04-06-2006, 06:46 AM
Replies: 8
Views: 1,902
Posted By AceOmega
RE: PlaySound not working when executed the second time???

Here is another way of accessing the wave file from your Exe Resources...

http://delphi.about.com/od/objectpascalide/l/aa021301c.htm

It probably will not work because the way you had it should...
Forum: General 04-06-2006, 06:27 AM
Replies: 8
Views: 1,902
Posted By AceOmega
RE: PlaySound not working when executed the second time???

Sorry, this is a third Pary Component that I know nothing about. See if they have a help file and see if the Function supports overloaded parameters like what you are doing. I can't really help you...
Forum: General 04-06-2006, 06:24 AM
Replies: 1
Views: 1,307
Posted By AceOmega
RE: TIBDataset Edit is not updating the data

_TempQty := StockQuantity.Value;
Stock.edit;
StockQuantity.Value := _TempQty + 1;
Stock.Post;

Also if whatever object Stock is supports it, do a refresh...

Stock.Refresh;

Not all Query...
Forum: General 04-05-2006, 03:39 PM
Replies: 8
Views: 1,902
Posted By AceOmega
RE: PlaySound not working when executed the second time???

Can we see how your constructed "PlaySound" in your class? It looks like you are trying to do an Olverloaded procedure.
Forum: General 04-05-2006, 12:28 PM
Replies: 13
Views: 2,058
Posted By AceOmega
RE: how do I make a file look smaler then it really is?

Just make your program a Self Exstracting Executable with WinZip and be done with it.
Forum: General 04-05-2006, 10:47 AM
Replies: 1
Views: 754
Posted By AceOmega
RE: Verify Emails

Use a POP3 engine to access the mail servers. These sites will have a help section that will explain how to setup pop3 and what their pop3 address is. Here is a google search on POP3 engines for...
Forum: General 04-05-2006, 07:31 AM
Replies: 13
Views: 2,058
Posted By AceOmega
RE: how do I make a file look smaler then it really is?

Scratches head.

Are you talking about a file that holds nothing but data. Then just zip it and unzip it when your program opens it. I don't see why this is hard?
Forum: General 04-05-2006, 06:24 AM
Replies: 13
Views: 2,058
Posted By AceOmega
RE: how do I make a file look smaler then it really is?

There is one called ASPack which will remove unneeded functions from your Executable making it smaller...

http://www.softpedia.com/get/Programming/Packers-Crypters-Protectors/ASPack.shtml
Forum: General 04-04-2006, 02:43 PM
Replies: 6
Views: 1,552
Posted By AceOmega
RE: createprocess help, need it with input options

ShellExecute(0, nil, Pchar(Appdir+'System\Myfile.exe'), PChar('-o 1 -n file'+' System\,'', SW_HIDE);

sorry formatting.
Forum: General 04-04-2006, 02:42 PM
Replies: 6
Views: 1,552
Posted By AceOmega
RE: createprocess help, need it with input options

ShellExecute(0, nil, Pchar(Appdir+'System\Myfile.exe'), PChar('-o 1 -n file'+' System\'),'', SW_HIDE);

Does not work?
Forum: General 04-04-2006, 02:40 PM
Replies: 7
Views: 1,624
Posted By AceOmega
RE: Position on Scroll Bar

Actually OnMouseUp would be better but because this is a third party component I could not be sure without downloading it first or its not in Delphi 7. If its a standard then I would look it up in...
Showing results 1 to 50 of 500

 
Forum Jump

All times are GMT. The time now is 05:36 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.