Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 500
Search took 0.22 seconds.
Search: Posts Made By: DarkHorse
Forum: General 09-27-2007, 03:05 AM
Replies: 6
Views: 1,102
Posted By DarkHorse
RE: Accessing Form1 from Form2

Hi,

Check if DbTable1Name is a public member of Form1.

Thanks


<cr>Pls. accept if it helped.</cr>

Thanx
Forum: General 06-17-2004, 10:05 PM
Replies: 1
Views: 5,173
Posted By DarkHorse
RE: How to generate GUID in Delphi IDE?

Hi,

I thk some menu shortcuts are clashing in ur IDE.
You can use CreateClassID function in ComObj.pas to create GUID thru code.



<cr>Pls. accept if it helped.</cr>

Thanx
Forum: General 06-02-2004, 10:12 PM
Replies: 1
Views: 956
Posted By DarkHorse
RE: TBRadioGroup

Hi,

The DBRadioGropup is linked to a field in the source table.
Radio butons can be added using the Items property. The Value property determines how the RadioGroup buttons behave.

For eg: ...
Forum: General 05-27-2004, 09:42 PM
Replies: 3
Views: 692
Posted By DarkHorse
RE: Error on Installing a package

Hi,

Only design time packages can be installed to the component palette. But wat ur trying is a runtime package and this cannot be installed to the component palette. Runtime packages are used...
Forum: General 05-26-2004, 07:55 AM
Replies: 2
Views: 821
Posted By DarkHorse
RE: Hotmail--Delphi Style! article files

Hi,

Gr8 stuff... ;))

<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.
Forum: General 05-22-2004, 04:38 AM
Replies: 6
Views: 1,411
Posted By DarkHorse
RE: Rounding Numbers PROBLEM!!! Need help!

Hi,


procedure TForm1.Edit1Exit(Sender: TObject);
begin
if (Edit1.Text = '') then
Edit1.Text := '0,00';
VA := StrToCurr(Edit1.Text);
ThousandSeparator := '.';
DecimalSeparator :=...
Forum: General 05-21-2004, 05:26 AM
Replies: 3
Views: 856
Posted By DarkHorse
RE: Stupid SQL problem

Hi,

Try this way...

if @ST1 is NULL
SET @ST=0
else
SET @ST=@ST1

// the SET keyword u missed out...
Forum: General 05-15-2004, 04:53 AM
Replies: 5
Views: 794
Posted By DarkHorse
RE: Including images

Hi,

If ur using the TImage component, then u can select this image to the Picture property at design time itself, using the Object Inspector. In this case, the Image will be built into the exe...
Forum: General 05-15-2004, 04:50 AM
Replies: 6
Views: 21,912
Posted By DarkHorse
RE: Cannot focus on a disabled or invisible window?

Hi,

Check whether the component which have the focus when changing pages, is Invisible or Disabled, then this error will be thrown. May be the pages in the notebook u have made as invisible and...
Forum: General 05-15-2004, 02:36 AM
Replies: 1
Views: 750
Posted By DarkHorse
RE: Comparing dates

Hi,

You can use a query to get the records...

for eg:
select * from orders where
order_date between '01-01-2003' and '05-15-2004'

Hope i understood u correctly..
Forum: General 05-14-2004, 01:07 AM
Replies: 1
Views: 804
Posted By DarkHorse
RE: Performing calculation on Paradox table

Hi,

For reporting purpose, u can add a calculated field to the TTable component. Then write an OnCalcFields Event for the TTable component. This way u can avoid modiying the existing data.

...
Forum: General 02-04-2004, 05:19 AM
Replies: 3
Views: 2,454
Posted By DarkHorse
RE: Invalid Class String error.

Hi,

Some additions to the MB's reply ;)

Try registering the DLL ComCtrl and see if its coming again.



<cr>Pls. accept if it helped.</cr>
Forum: General 01-30-2004, 05:07 AM
Replies: 3
Views: 612
Posted By DarkHorse
RE: String function

Hi,

Try this...

Showmessage(FormatDateTime('hhmmss', time));

<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.
Forum: General 01-08-2004, 05:50 AM
Replies: 4
Views: 1,347
Posted By DarkHorse
RE: Why XMLTransformProvider don't let me save XML with $#^& symbols?

Hi,

While creating the XML u have to use that encoding format which will enable you enter special characters...

<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.
Forum: General 01-08-2004, 02:56 AM
Replies: 4
Views: 1,347
Posted By DarkHorse
RE: Why XMLTransformProvider don't let me save XML with $#^& symbols?

Hi,

U have to follow a different encoding format.

Try with encoding="windows-1252"



<cr>Pls. accept if it helped.</cr>
Forum: DB-Aware 01-08-2004, 02:51 AM
Replies: 1
Views: 1,072
Posted By DarkHorse
RE: DBlookupcombobox

Hi,

May be u can have Master-Detail relationship between the tables and the rest it ill take care.

<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.
Forum: General 01-08-2004, 02:49 AM
Replies: 2
Views: 1,165
Posted By DarkHorse
RE: How can I know if "Caps Lock" is pressed

Hi,

In the OnKey down event, u check the following way..

if Key = VK_CAPITAL then
Showmessage('Caps');
Forum: General 10-29-2003, 05:13 AM
Replies: 3
Views: 1,416
Posted By DarkHorse
RE: trect explanation

Hi,

I think the Delphi help is more than enough for this. Here it is..


From Delphi Help
================
TRect type defines a rectangle.

Unit
Forum: General 10-29-2003, 03:08 AM
Replies: 8
Views: 1,022
Posted By DarkHorse
RE: A list of teachers?

Hi,

Even i was looking for a better way to implement this.
Anybody has a good suggestion ?

I looked into how the treeview class is implemented having different TreeNodes etc etc..

...
Forum: General 10-22-2003, 06:46 AM
Replies: 2
Views: 622
Posted By DarkHorse
RE: selecting text

Hi,

Try this piece of code...

procedure TForm1.BitBtn1Click(Sender: TObject);
var
iPos, i, j, k: Integer;
myStr, myNewStr: String;
begin
iPos := Edit1.SelStart;
Forum: General 10-22-2003, 01:35 AM
Replies: 2
Views: 847
Posted By DarkHorse
RE: delphi oops

Hi,

Heres some more links...

http://delphi.about.com/cs/oopindelphi/
http://delphi.about.com/cs/oopindelphi/index_2.htm...
Forum: General 10-22-2003, 01:28 AM
Replies: 2
Views: 847
Posted By DarkHorse
RE: delphi oops

Hi,

Heres a simple explanation...

http://home.planet.nl/~beenh012/sdp/OOP2.htm



<cr>Pls. accept if it helped.</cr>
Forum: General 10-21-2003, 11:49 PM
Replies: 2
Views: 1,669
Posted By DarkHorse
RE: Free a MDI child form

Hi,

The pointer is not getting deallocated i think. So use FreeAndNil(Form2); in the OnClose event of the form. This will work fine.

Hope this will help.

<cr>Pls. accept if it...
Forum: General 10-17-2003, 05:09 AM
Replies: 1
Views: 1,385
Posted By DarkHorse
RE: How to call it, because of a procedure from another unit?

Hi,

Wat abt setting some boolean flag. Then execute only the code u want based of the boolean flag.

If u want to execute the entire code, set the flag to True, and if only some portion of...
Forum: General 10-16-2003, 10:22 PM
Replies: 5
Views: 1,420
Posted By DarkHorse
RE: Save text to a txt file

Hi,

Try this once.. quite simple..

var
myFileName: string;
mySList: TStringList;

procedure TForm1.FormCreate(Sender: TObject);
var
Forum: DB-Aware 10-15-2003, 09:59 PM
Replies: 3
Views: 1,346
Posted By DarkHorse
RE: Edit SQL results - direct from DBGrid ?

Hi,

Pls, make the RequestLive property of the Query component to True and then try.





<cr>Pls. accept if it helped.</cr>
Forum: General 10-14-2003, 12:32 AM
Replies: 1
Views: 1,188
Posted By DarkHorse
RE: EStack Overflow

Hi,

Pls check if ur doing any processing inside an infinite loop.



<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.
Forum: General 10-13-2003, 11:52 PM
Replies: 2
Views: 911
Posted By DarkHorse
RE: Searching string whit *.

Hi,

Try this code... Its a samole code... It might help..

procedure TForm1.BitBtn1Click(Sender: TObject);
var
myStr, myNewStr: String;
myPos, i, iStartPos, iEndPos: Integer;
begin
...
Forum: DB-Aware 07-04-2003, 09:30 PM
Replies: 2
Views: 1,181
Posted By DarkHorse
RE: TDBLookupComboBox

Hi,

Yes, u can. U dont have to specify the DataSource and DataField in ur case. Only define the ListSource, ListField and the KeyField properties.

Just a suggestion, y cant use DBComboBox. ...
Forum: General 04-04-2003, 09:28 PM
Replies: 2
Views: 1,510
Posted By DarkHorse
RE: String Delete and memo

Hi,

I think wat ur doing is correct. The first parameter in the Delete procedure should be var paramater. Memo.Text is not a var paramater and thats y the compiler error message.

good...
Forum: General 04-02-2003, 10:29 PM
Replies: 9
Views: 3,291
Posted By DarkHorse
RE: how do i get the hWnd(Handle) of another app?

Hi,

The "FindExecutable" API might help u, havent tried though. Use ShellApi in ur uses clause.

good luck.

<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.
Forum: General 04-01-2003, 08:28 AM
Replies: 3
Views: 922
Posted By DarkHorse
RE: How to detect BDE installed?

Hi,

try this...

Uses
Bde;

function BDEInstalled : boolean;
begin
result := (dbiInit(nil) = 0)
Forum: General 04-01-2003, 03:32 AM
Replies: 1
Views: 885
Posted By DarkHorse
RE: How do I do so the combobox just can choose from itemlist ?

Hi,

Set the style property of the combobox to csDropDownList.

good luck.

<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.
Forum: General 04-01-2003, 03:30 AM
Replies: 1
Views: 920
Posted By DarkHorse
RE: Delete a Item in ListBox

Hi,

try this...

procedure TForm1.BitBtn1Click(Sender: TObject);
begin
if ListBox1.Items.IndexOf(ComboBox1.Text) > -1 then
...
Forum: General 03-28-2003, 07:56 AM
Replies: 2
Views: 1,362
Posted By DarkHorse
RE: Static link to .DCU

Hi,

Copy the file name to ur project's directory and then use the file in ur uses clause.

good luck.

<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.
Forum: General 03-24-2003, 12:28 AM
Replies: 3
Views: 1,263
Posted By DarkHorse
RE: sort routine

Hi,

Here's an example of custom sort using TList, it might help u...

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Forum: General 03-24-2003, 12:27 AM
Replies: 3
Views: 1,133
Posted By DarkHorse
RE: CustomSort Strings

Hi,

Heres an exmaple of custom sort using TList...

unit Unit1;

interface

uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Forum: General 03-23-2003, 11:20 PM
Replies: 3
Views: 708
Posted By DarkHorse
RE: Resizing controls?

Hi,

What abt using the Anchors property of the controls. The minimum form size can be specified in the Constraints property of the form.

good luck.

<cr>Pls. accept if it helped.</cr>
...
Forum: General 03-18-2003, 10:15 PM
Replies: 1
Views: 837
Posted By DarkHorse
RE: TreeView item selected help

Hi,

Try this...

// u can do this in the OnChangeEvent...
procedure TForm1.TreeView1Change(Sender: TObject; Node: TTreeNode);
begin
if Node.Level = 0 then
Label1.Caption :=...
Forum: General 03-16-2003, 09:58 PM
Replies: 5
Views: 1,181
Posted By DarkHorse
RE: How can i mdifying recod value in a query?

Hi,

U set the RequestLive property of the Query to True and try, it should work.

good luck.

<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.
Forum: General 03-15-2003, 11:48 PM
Replies: 6
Views: 749
Posted By DarkHorse
RE: records, arrays and memory

Hi,

You can set the array to nil.

for eg : MyArray := Nil;

good luck.

<cr>Pls. accept if it helped.</cr>
Forum: General 03-12-2003, 11:14 PM
Replies: 4
Views: 869
Posted By DarkHorse
RE: NT service

Hi,

As Simes told, its not possible to convert an existing application into a service application. What i wud suggest create a new service application and in the OnStart u start the other...
Forum: General 03-12-2003, 04:43 AM
Replies: 5
Views: 971
Posted By DarkHorse
RE: registry on a network

Hi,

Try this... Use "Registry" in ur uses clause.

procedure NetReg;
var
R: TRegistry;
S: TStringList;
begin
R:=TRegistry.Create;
Forum: General 03-11-2003, 11:54 PM
Replies: 3
Views: 888
Posted By DarkHorse
RE: Process messages without TApplication??

Hi,

One way is to use the Forms unit in ur uses clause and call Application.ProcessMessages. But this will increase ur application size.

or see the code, how they implemented...
Forum: General 03-11-2003, 11:48 PM
Replies: 3
Views: 1,665
Posted By DarkHorse
RE: Get Text Buf - For String not Control

Hi,

Can u pls tell me wat ur trying to achieve by this.


<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.
Forum: General 03-11-2003, 11:33 PM
Replies: 2
Views: 725
Posted By DarkHorse
RE: TThread or not

Hi,

Did u try using Application.ProcessMessages inside the process.



<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.
Forum: General 03-10-2003, 10:11 PM
Replies: 1
Views: 875
Posted By DarkHorse
RE: TRegistry exception handling?

Hi,

Is this wat ur looking for... Use "Registry" in ur uses clause.

procedure TForm1.BitBtn1Click(Sender: TObject);
var
MyReg: TRegistry;
begin
MyReg := TRegistry.Create;
try
Forum: General 03-10-2003, 10:00 PM
Replies: 3
Views: 1,113
Posted By DarkHorse
RE: Import ActiveX control

Hi,

Did u check in the ActiveX Tab in the control palette ?



<cr>Pls. accept if it helped.</cr>

Thanx
Tomy.
Forum: General 03-07-2003, 05:08 AM
Replies: 3
Views: 2,458
Posted By DarkHorse
RE: Determining the MAC address of a remote computer

Hi,

Look at these posts...

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

good luck.

<cr>Pls. accept if it helped.</cr>
Forum: General 03-06-2003, 11:48 PM
Replies: 1
Views: 891
Posted By DarkHorse
RE: Saving html source into a memo

Hi,

Try this... Drop a WebBrowser component and a Memo into a Form. Use "ActiveX" in ur uses clause.

procedure TForm1.BitBtn1Click(Sender: TObject);
begin
...
Showing results 1 to 50 of 500

 
Forum Jump

All times are GMT. The time now is 01:55 PM.


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