Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 305
Search took 0.06 seconds.
Search: Posts Made By: atulparmar
Forum: General 11-22-2006, 01:44 AM
Replies: 2
Views: 4,101
Posted By atulparmar
RE: TWebBrowser, page is fully loaded

Hi, use the following code.

WebBrowser1.Navigate('www.google.com');
while WebBrowser1.ReadyState < 4 do
Application.ProcessMessages;
ShowMessage('Fully loaded');


Accept As Answer if it...
Forum: General 10-06-2006, 12:19 AM
Replies: 2
Views: 3,369
Posted By atulparmar
RE: Throw an exception

It will be interrupted

Accept As Answer if it helps

Atul
Forum: DB-Aware 08-29-2006, 05:27 AM
Replies: 2
Views: 1,566
Posted By atulparmar
RE: How to extend the height of rows in DBGrid and wrap the text?

and finally this.
http://delphikingdom.ru/asp/answer.asp?IDAnswer=3412

Accept As Answer if it helps

Atul
Forum: General 08-29-2006, 04:16 AM
Replies: 2
Views: 977
Posted By atulparmar
RE: I must activate an motor in the lpt port by delphi, please help me!

also check this
http://www.epanorama.net/circuits/diskstepper.html
and search the web for stepper motors and you will get lots of links.

Accept As Answer if it helps

Atul
Forum: DB-Aware 08-29-2006, 03:29 AM
Replies: 2
Views: 1,566
Posted By atulparmar
RE: How to extend the height of rows in DBGrid and wrap the text?

Check this out. However, it is for stringgrid but you will get the idea on how to do it with dbgrid.

http://www.bsdg.org/SWAG/DELPHI/0085.PAS.html

Accept As Answer if it helps

Atul
Forum: General 08-29-2006, 02:30 AM
Replies: 3
Views: 655
Posted By atulparmar
RE: Count a field records

Golden_eye,

To just to get the number of records; fetching all the records into dataset is not desired. (if you value performance)



Accept As Answer if it helps

Atul
Forum: General 08-29-2006, 02:25 AM
Replies: 7
Views: 5,267
Posted By atulparmar
RE: how to get Text from HWND 'edit' type ?

>>if hPassword contain more than 7 character,
the computer is hang up when i try to get text from hPassword

It works fine for me. Tested on XP.

Accept As Answer if it helps

Atul
Forum: General 08-29-2006, 02:20 AM
Replies: 3
Views: 655
Posted By atulparmar
RE: Count a field records

Easy, fast and recommended way is to do it by SQL. e.g.

select count(*) as namecount from <YourTableName> where NAME="Josh"

Accept As Answer if it helps

Atul
Forum: General 08-17-2006, 07:08 AM
Replies: 2
Views: 1,957
Posted By atulparmar
RE: Problem with TWordApplication object in Delphi 7

var
doc : olevariant;
begin
//your code
doc := WordApp.Documents;
doc.Open(sFileName);
// your code
end;

Accept As Answer if it helps
Forum: General 08-17-2006, 06:58 AM
Replies: 3
Views: 1,392
Posted By atulparmar
RE: Invalid floating point operation ??

It doesn't shows any error on my machine.
Can you paste the code fragment?

Accept As Answer if it helps

Atul
Forum: General 08-17-2006, 06:56 AM
Replies: 3
Views: 1,000
Posted By atulparmar
RE: is it true about memory leak

it is the method of TCustomClientDataSet so TCustomClientDataSet will and is responsible to destroy the objects created by itself.

Accept As Answer if it helps

Atul
Forum: General 07-31-2006, 11:40 PM
Replies: 1
Views: 802
Posted By atulparmar
RE: Version Info in IDE

Make sure that the checkbox "Include version information in project" is checked.

Accept As Answer if it helps

Atul
Forum: .NET 07-20-2006, 06:48 AM
Replies: 6
Views: 2,121
Posted By atulparmar
RE: Delphi 7 --> Delphi .NET

Also check this
http://codecentral.borland.com/Item.aspx?id=18889

Accept As Answer if it helps

Atul
Forum: General 07-07-2006, 04:03 AM
Replies: 1
Views: 1,034
Posted By atulparmar
RE: smilies in richedit (OLE) and increasing memory

http://www.swissdelphicenter.ch/en/showcode.php?id=1147

Accept As Answer if it helps

Atul
Forum: General 07-06-2006, 03:59 AM
Replies: 3
Views: 14,374
Posted By atulparmar
RE: How to convert string to byte array

What abt.
var
s : string;
b : array of Byte absolute s;
begin
s := 'Anything';
// B will have the byte array of S
end;

Accept As Answer if it helps
Forum: General 07-06-2006, 03:50 AM
Replies: 1
Views: 654
Posted By atulparmar
RE: TListView With Checkbox

set the checkbox property of ListView to true

Accept As Answer if it helps

Atul
Forum: General 05-30-2006, 04:18 AM
Replies: 5
Views: 1,093
Posted By atulparmar
RE: Webbrowser and forms problem

Another way is to

uses webbrowser;
{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
showwebbrowser;
//web1.wb1.Navigate('www.delphipages.com'); //REMARK THIS
end;
Forum: General 05-30-2006, 04:17 AM
Replies: 5
Views: 1,093
Posted By atulparmar
RE: Webbrowser and forms problem

You are creating and destroying the form (what contains ur web control) on the fly and trying to access it with web1 what might point to some other instance of TWeb1.

uses webbrowser;
{$R *.dfm}...
Forum: General 05-30-2006, 04:05 AM
Replies: 6
Views: 1,988
Posted By atulparmar
RE: TreeView Problems can anyone help???

Sorry there is one more fault

if dat[0] = '' then
begin
if MyFreeRefNode1 = nil then
begin
MyTreeNode1 := Add( MyTreeNode1, '@ '+MainHost ); {add master node}
MyFreeRefNode1...
Forum: General 05-30-2006, 04:03 AM
Replies: 6
Views: 1,988
Posted By atulparmar
RE: TreeView Problems can anyone help???

Move the red line one step down so that it should look like the following

if dat[0] = '' then
begin
if MyFreeRefNode1 = nil then
begin
MyTreeNode1 := Add( MyTreeNode1, '@ '+MainHost...
Forum: General 05-30-2006, 01:23 AM
Replies: 6
Views: 1,988
Posted By atulparmar
RE: TreeView Problems can anyone help???

Check for the value of dat[0]. as you are passing [0] zero a constant so it will always have the same value so it will always enter into the first IF.

Can you paste the complete procedure code.
...
Forum: General 05-30-2006, 12:26 AM
Replies: 6
Views: 1,187
Posted By atulparmar
RE: Sorting a treeview

Mate, does this helped you?

Accept As Answer if it helps

Atul
Forum: General 05-29-2006, 06:11 AM
Replies: 2
Views: 917
Posted By atulparmar
RE: Edit record(s)

To Edit just write
ADOTable1.Edit;
and to post
if ADOTable.State in [dsInsert, dsEdit] then
ADOTable1.Post;


Accept As Answer if it helps

Atul
Forum: .NET 05-29-2006, 01:07 AM
Replies: 6
Views: 2,121
Posted By atulparmar
RE: Delphi 7 --> Delphi .NET

NO.L^(

The D7 compiler does not understandds .Net

Accept As Answer if it helps

Atul
Forum: General 05-29-2006, 12:56 AM
Replies: 1
Views: 1,838
Posted By atulparmar
RE: Changing button position

http://delphi.about.com/library/weekly/aa102505a.htm

Accept As Answer if it helps

Atul
Forum: General 05-29-2006, 12:43 AM
Replies: 4
Views: 1,021
Posted By atulparmar
RE: Self?

Self is the referance to the object you are operating on.
Sometime when you are working on class implementation, you may need an object referance. e.g. you have a class say ClassA and in the...
Forum: General 05-29-2006, 12:30 AM
Replies: 1
Views: 873
Posted By atulparmar
RE: Create constructor

Anything that is derived from TComponent.

The object you are passing to the constructor is the owner of that (new) component what is responsible to destroy that (new) component.

i.e. If you...
Forum: General 05-26-2006, 12:34 AM
Replies: 2
Views: 805
Posted By atulparmar
RE: New to database stuff; TADOTable question

var
Command : string;
i : integer;
begin
for i := 0 to ADOTable1.FieldCount - 1 do
begin
If Command <> '' then
Command := Command + ',';
Command := Command +...
Forum: General 05-26-2006, 12:17 AM
Replies: 2
Views: 749
Posted By atulparmar
RE: Can anyone help with database table creation, please?

Can you paste the error message?

Accept As Answer if it helps

Atul
Forum: General 05-25-2006, 11:56 PM
Replies: 1
Views: 905
Posted By atulparmar
RE: Is my application the active one?

Use Application.Active property. It is true when your your application has focus and will be false otherwise.

Accept As Answer if it helps

Atul
Forum: General 05-25-2006, 07:59 AM
Replies: 2
Views: 1,405
Posted By atulparmar
RE: what is Multi-tiered and Multi-threaded

Multi-tiered means the application is having more than one layer where the layer is logically related group of code.

Consider a simple databse application what uses Access database. To connect to...
Forum: General 05-25-2006, 05:47 AM
Replies: 6
Views: 1,187
Posted By atulparmar
RE: Sorting a treeview

This means that it always enters into the first IF and does not satisfy the condition for the other IFs (i.e. else if).

Better approach would be to place a break point and exmine/watch whether it...
Forum: General 05-25-2006, 05:09 AM
Replies: 6
Views: 1,187
Posted By atulparmar
RE: Sorting a treeview

If you are talking abt following code then I can not see any problem what can cause the problem. Or can you explain me more?

if (dat[8] = '11') or (DM.UserTyp = '11') then
begin
...
Forum: General 05-25-2006, 05:02 AM
Replies: 2
Views: 771
Posted By atulparmar
RE: Creating a Tab at Run Time

If the problem is loading time then leave the control creation as is and focus on data population and delay it as long as you can.

i.e. populate the data as and when needed e.g. you should...
Forum: General 05-25-2006, 04:48 AM
Replies: 6
Views: 1,187
Posted By atulparmar
RE: Sorting a treeview

Hi,

declare a variable what holds the referance to the root node and check it before you add. e.g.

[CODE]var
MyFreeRefNode : TTreeNode;
begin
if (dat[8] = '0') or (DM.UserTyp = '0') then
...
Forum: General 05-25-2006, 02:27 AM
Replies: 2
Views: 807
Posted By atulparmar
RE: popupmenu item from database

You need to dynamically create the menu items.
var
m : TMenuItem;
begin
while not Table1.Eof do
begin
m := TMenuItem.Create(Self);
m.Caption :=...
Forum: General 05-25-2006, 01:48 AM
Replies: 3
Views: 2,573
Posted By atulparmar
RE: Rave Reports SUM Question?

SUM(Field1)+SUM(Field2)

Accept As Answer if it helps

Atul
Forum: General 05-25-2006, 01:46 AM
Replies: 1
Views: 785
Posted By atulparmar
RE: simple communication with remote application?

If you can access the remote file from your local machine then you can directly execute from your system and this way the file will be executed on your machine.

But if you need to execute that...
Forum: General 05-25-2006, 01:39 AM
Replies: 4
Views: 993
Posted By atulparmar
RE: Using Timer to minus time

Set timer interval to 20000

Accept As Answer if it helps

Atul
Forum: General 05-25-2006, 01:34 AM
Replies: 1
Views: 874
Posted By atulparmar
RE: ftp directory listining

To get the recursive listing you will have to make a directory active then issue the IdFTP1.List(DirectoryListBox.Items,'*',false); for that directory.



Accept As Answer if it helps

Atul
Forum: General 05-25-2006, 12:46 AM
Replies: 5
Views: 852
Posted By atulparmar
RE: How can I send some HTML code to TWebBrowser control?

Hi,

I also fixed the action cancelled msg.

put the following line before you execute WebBrowser1.Navigate method.
WebBrowser1.Stop;

Accept As Answer if it helps

Atul
Forum: General 05-25-2006, 12:42 AM
Replies: 5
Views: 852
Posted By atulparmar
RE: How can I send some HTML code to TWebBrowser control?

Hi,

you can use javascript.
e.g. put the following code in onclick event of a button
WebBrowser1.Navigate('javascript:document.text=''Hello''');

At first click it shows action cancelled....
Forum: General 05-24-2006, 11:38 PM
Replies: 2
Views: 1,507
Posted By atulparmar
RE: unsatisfied forward or external declaration

This means that there is no defining declaration (method implementation) for the said method in your .pas file.

It might happen for several reasons.
1. you have declared a method but not...
Forum: General 05-23-2006, 03:29 AM
Replies: 3
Views: 1,009
Posted By atulparmar
RE: How to searching some string from text files?

var
MyList: TStringList;
Index: Integer;
FileName, StrToFind : String;
begin
MyList := TStringList.Create;
try
MyList.LoadFromFile(FileName);
MyList.Sort; { Find will only...
Forum: General 05-23-2006, 12:57 AM
Replies: 2
Views: 2,358
Posted By atulparmar
RE: The best practice for using timers in service application?

You should go with timer it can handle your both options.

1)

var
Minutes : Integer;
begin
Minutes := 30;
Timer1.Interval := 1 * 60 * Minutes;
end;
Forum: General 05-23-2006, 12:22 AM
Replies: 3
Views: 808
Posted By atulparmar
RE: How I can Disable some Keys.

http://www.delphifaq.com/faq/delphi_windows_API/f512.shtml
http://dcslab.snu.ac.kr/~nirsys/KeyboardHooking.htm
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1645&lngWId=7
...
Forum: DB-Aware 05-23-2006, 12:14 AM
Replies: 4
Views: 903
Posted By atulparmar
RE: How to Add a checkbox or a button representing a record in a DBgrid

There is already one fixed column what shows the currently selected record.

You can extend its functionality to suit your need. First, you need to derive a class from TDBGrid and have to override...
Forum: General 05-22-2006, 11:12 PM
Replies: 3
Views: 808
Posted By atulparmar
RE: How I can Disable some Keys.

You will need to hook the keyboard.

See
http://delphi.about.com/library/bluc/text/uc063001a.htm
http://www.q3.nu/trucomania/truco.cgi?408&ing

Accept As Answer if it helps

Atul
Forum: General 05-22-2006, 05:47 AM
Replies: 2
Views: 1,532
Posted By atulparmar
RE: The best practice for handling command line arguments in Delphi?

You can use the same function for console app also like the following.

program Project1;

{$APPTYPE CONSOLE}

uses
SysUtils;

var
Forum: General 05-22-2006, 05:44 AM
Replies: 2
Views: 1,532
Posted By atulparmar
RE: The best practice for handling command line arguments in Delphi?

use ParamCount and ParamStr functions.
e.g.

procedure TForm1.FormCreate(Sender: TObject);

var
i: Integer;
for i := 1 to ParamCount do
begin
if LowerCase(ParamStr(i)) = 'beep' then
Showing results 1 to 50 of 305

 
Forum Jump

All times are GMT. The time now is 09:18 PM.


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