Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 500
Search took 0.28 seconds.
Search: Posts Made By: jdg
Forum: VCL 08-03-2015, 11:04 PM
Replies: 7
Views: 3,499
Posted By jdg
Or maybe something to do with your directory...

Or maybe something to do with your directory settings in your project options dialog.

In most cases, I have components in my Delphi4\Bin directory.
Forum: VCL 08-03-2015, 11:01 PM
Replies: 7
Views: 3,499
Posted By jdg
I think I cannot be much help on this. ...

I think I cannot be much help on this. However...

In Project | Options | Compiler | Debugging I have all check boxes checked.

In Tools | Debugger Options | General - no boxes checked except...
Forum: VCL 08-02-2015, 11:30 AM
Replies: 7
Views: 3,499
Posted By jdg
Have you tried putting a breakpoint in your...

Have you tried putting a breakpoint in your component's code? Works for me in D4.
Forum: DB-Aware 07-18-2015, 04:16 PM
Replies: 3
Views: 8,636
Posted By jdg
If you double click your grid during design time...

If you double click your grid during design time you will open the columns editor where you can set the width of the columns. Or you can wright a routine to save the width of the columns when you...
Forum: VCL 07-18-2015, 03:43 PM
Replies: 3
Views: 4,238
Posted By jdg
You can put them on multiple forms and have...

You can put them on multiple forms and have multiple open tables, however is one form is in edit state, you won't be able to edit data on the other form.

It's likely you have a problem with your...
Forum: VCL 07-18-2015, 03:39 PM
Replies: 12
Views: 5,967
Posted By jdg
For design time, you can set the actual path to...

For design time, you can set the actual path to the folder in the object inpector, and in your initial code at run time change the database to the executable's location in the event the user modifies...
Forum: VCL 07-18-2015, 03:23 PM
Replies: 5
Views: 4,524
Posted By jdg
You must post your edits explicitly before you...

You must post your edits explicitly before you close the dataset.

In the BeforeClose event handler for your table do something like

if (tbl.State = dsEdit) or (tbl.State = dsInsert) then
...
Forum: General 01-10-2015, 02:04 PM
Replies: 8
Views: 5,060
Posted By jdg
In what unit is DTM_SETFORMAT defined?

In what unit is DTM_SETFORMAT defined?
Forum: General 12-20-2014, 06:28 PM
Replies: 2
Views: 3,823
Posted By jdg
// 3 functions available to your program: ...

// 3 functions available to your program:

function IncYear(ADT: TDateTime): TDateTime;
var
Da,Mo,Yr: word;
ATime: TDateTime;
begin
ATime := frac(ADT);
DecodeDate(ADT,Yr,Mo,Da);
Yr...
Forum: DB-Aware 12-20-2014, 01:13 PM
Replies: 2
Views: 8,613
Posted By jdg
thanks kolbasz

thanks kolbasz
Forum: DB-Aware 12-20-2014, 10:43 AM
Replies: 2
Views: 8,613
Posted By jdg
dbDateTimePicker

I'm using Delphi 4. Yep... still :)

I lost TProfDBDateTimePicker in a drive failure and can't find it now. Can anyone suggest a clean dbDateTimePicker component for Delphi 4?
Forum: DB-Aware 12-20-2014, 10:29 AM
Replies: 2
Views: 5,881
Posted By jdg
unit MyDBLib uses db ... function...

unit MyDBLib
uses db
...
function MemoToStr(Afield: TField): string;
begin
if Afield.value <> null then
Result := Afield.value
else Result := '';
end;
Forum: General 11-26-2013, 04:28 AM
Replies: 13
Views: 4,196
Posted By jdg
This is not very complicated. I've been checking...

This is not very complicated. I've been checking in rather infrequently, but if you care to, post any specific questions. Either I or someone else will catch them.
Forum: General 11-25-2013, 10:23 PM
Replies: 13
Views: 4,196
Posted By jdg
The date is stored internally as the integer part...

The date is stored internally as the integer part of a type double numeric value. The date format, either US or UK is apparent only when the date is displayed as a string, and shows itself in either...
Forum: General 11-25-2013, 09:54 PM
Replies: 1
Views: 2,476
Posted By jdg
$badf00d

Thought you may find this interesting...

I had a routine fail because of an unassigned object & Delphi's debugger stopped execution on the offending line. Unsure of what was going on I slid the...
Forum: General 11-21-2013, 06:30 PM
Replies: 3
Views: 3,545
Posted By jdg
Thanks Major. Perfect! Actually I thought I...

Thanks Major. Perfect!

Actually I thought I had tried that first. I must have had something screwed up. But it works now.

jdg
Forum: General 11-21-2013, 06:24 PM
Replies: 3
Views: 4,023
Posted By jdg
I think Major was trying to get at something...

I think Major was trying to get at something along these lines:

var
LineHgt,
LinesPerPage,
TopMargin,
CurLineNo: integer;
begin
// not sure these numbers are realistic, been a...
Forum: General 11-21-2013, 05:59 PM
Replies: 2
Views: 2,547
Posted By jdg
Maybe like this somewhere in your code... ...

Maybe like this somewhere in your code...

Memo1.clear;
Memo1.lines.add(label3.caption);

and to go the other way around...
if Memo1.lines.count > 0 then
label3.caption := Memo1.lines[0];
...
Forum: General 11-21-2013, 05:49 PM
Replies: 3
Views: 3,545
Posted By jdg
Forward directive for a class

I'm trying to declare some classes like this:

type
TWife = class
private
FHusband: THusband;
public
...
end;
Forum: General 04-12-2009, 02:54 AM
Replies: 4
Views: 1,284
Posted By jdg
RE: Filter is not working

After you set filter & filtered, try...
ndsLoadFunctionSecurityCache.Refresh;

jdg.ho

I love this forum. Your generosity is wonderful.
Forum: DB-Aware 03-19-2009, 01:29 AM
Replies: 3
Views: 5,831
Posted By jdg
RE: DBLookupComboBox and NullValueKey

Question 1:
If there is a value already showing in the field, how do I clear it? I have tried setting NullValueKey to "Del", but it doesn't seem to work. I am using a ListSource to populate the...
Forum: DB-Aware 03-19-2009, 01:23 AM
Replies: 3
Views: 5,831
Posted By jdg
RE: DBLookupComboBox and NullValueKey

I don't know of any situation where I would want a dbLookupCombobox over a dbGrid, and I doubt this is the solution that will work best for you.

Look into creating a lookup field. I assume your...
Forum: General 03-05-2009, 03:15 AM
Replies: 10
Views: 3,747
Posted By jdg
RE: SQL Query - Output to Text File (70,000+ rows)

my 2 cents:

TTable is non visual just as is a TQuery, not to be confused with a TDBGrid.
If all the data you want to manipulate is in one table, why not use a TTable?

And check out:...
Forum: General 03-05-2009, 03:02 AM
Replies: 13
Views: 1,853
Posted By jdg
RE: Statusbar position by downloading a file ?

Ha ha ha!

I remind you that you are the one asking the question. And I inform you that you are receiving help from a long time major contributor to this forum. If you do not understand what...
Forum: General 03-02-2009, 03:55 PM
Replies: 5
Views: 2,248
Posted By jdg
RE: How to give the key in ComboBox ?

OK.
So...
This lame little ap responds to a change in the combo box by moving the cursor in the edit.

unit TrashForm;

interface

uses
Windows, Messages, SysUtils, Classes, Graphics,...
Forum: General 03-02-2009, 03:32 AM
Replies: 5
Views: 2,248
Posted By jdg
RE: How to give the key in ComboBox ?

Does this example answer your question?

procedure TForm1.Button1Click(Sender: TObject);
begin
ComboBox1.Text := 'Hi There.';
ComboBox1.setFocus;
ComboBox1.SelStart := 3;
...
Forum: General 03-02-2009, 03:19 AM
Replies: 3
Views: 1,163
Posted By jdg
RE: hi calculate page loading time

This may do the trick:

var
oTC: dWord;

...
oTC := GetTickCount;
theForm.submit;
repeat
until not WebBrowser1.Busy;
Forum: General 02-20-2009, 02:05 AM
Replies: 6
Views: 7,807
Posted By jdg
RE: How can I open a .txt file

Or you can complicate it even further...
This will create the file if it doesn't exist
and show the already open file if it is already open.


ShowOpenOrCreateTextFileInNotepad('c:\MyFile.txt');...
Forum: General 02-19-2009, 01:49 AM
Replies: 6
Views: 7,807
Posted By jdg
RE: How can I open a .txt file

One solution using a TMemo to display the file contents:

Memo1.Lines.LoadFromFile('c:\MyFile.txt');

jdg.ho

I love this forum. Your generosity is wonderful.
Forum: General 12-06-2008, 03:32 PM
Replies: 2
Views: 3,815
Posted By jdg
RE: How to get registry values

Check out Delphi Help for TRegistry,
and specifically GetKeyNames.

Put a button and a memo on a form and try:

function GetSubKeys(ARegStr: string; var SubKeys: TStringList): boolean;
var...
Forum: General 11-07-2008, 12:49 AM
Replies: 5
Views: 1,374
Posted By jdg
RE: Scientific format to string

It worked.

jdg.ho

I love this forum. Your generosity is wonderful.
Forum: General 11-06-2008, 02:19 AM
Replies: 5
Views: 1,374
Posted By jdg
RE: Scientific format to string

I understand your original value to be a string and you want the result to be string?

Try this:
Label1.text := FormatFloat('#0',StrToFloat('1.0011e+11'));



jdg.ho

I love this forum. ...
Forum: DB-Aware 11-05-2008, 03:14 AM
Replies: 3
Views: 1,333
Posted By jdg
RE: TSMDBGrid - Hidden column / Horiz Scroll Bar

Thanks for your reply, but refreshing the grid has no effect on the visibility of the scroll bar.

jdg.ho

I love this forum. Your generosity is wonderful.
Forum: DB-Aware 11-05-2008, 01:58 AM
Replies: 4
Views: 1,151
Posted By jdg
RE: DBEdits & DBComboBoxes

You can filter your detail table upon a selection being made in the combo box.

Initially, as you're opening your form and before you open the detail table, set the filter to some obscure condition...
Forum: DB-Aware 11-05-2008, 01:39 AM
Replies: 3
Views: 1,333
Posted By jdg
TSMDBGrid - Hidden column / Horiz Scroll Bar

It seems if I hide a column (set visible to false) in the grid, the horizontal scroll bar is always visible, in spite of the width of the remaining columns. What can be done so that the horizonal...
Forum: General 10-31-2008, 12:42 AM
Replies: 3
Views: 906
Posted By jdg
RE: TListView.OnColWidthChange

Using Delphi 4.
I don't have an OnColumnDragged event handler.
Any other suggestions?

jdg.ho

I love this forum. Your generosity is wonderful.
Forum: General 10-30-2008, 05:06 PM
Replies: 3
Views: 906
Posted By jdg
TListView.OnColWidthChange

I have a TListView & a TLabel below it with the label indicating a total for one of the columns. In order to keep the total label correctly aligned under the column, I need to set its left property...
Forum: DB-Aware 06-21-2008, 04:15 PM
Replies: 2
Views: 1,447
Posted By jdg
RE: dbGrid.LeftVisibleColumn

For anyone interested, I'll answer my own question.

Credit to MrBaseBall's help on this thread
http://www.delphipages.com/threads/thread.cfm?ID=157078&G=157022


type
TMyGrid =...
Forum: DB-Aware 06-21-2008, 03:00 PM
Replies: 2
Views: 1,447
Posted By jdg
RE: dbGrid.LeftVisibleColumn

My question has nothing to do with the visible & showing properties. The property values for "visible" & "showing" for columns remains true even after they have scrolled out of sight.

jdg.ho

I...
Forum: DB-Aware 06-21-2008, 02:54 PM
Replies: 2
Views: 1,447
Posted By jdg
dbGrid.LeftVisibleColumn

How can I get the column index or field name of the leftmost visible column in a dbGrid? Ultimately what I'm aiming to do is show some column totals under a few columns. When the columns scroll...
Forum: DB-Aware 06-21-2008, 12:45 PM
Replies: 3
Views: 2,274
Posted By jdg
RE: How can i Select Particular Row in DBGrid with the hlep or EditBox

Omniterry's answer is correct.
You want to do a locate in the TTable or TQuery that the grid is linked to. dbGrid1.Datasource.dataset returns the table or query, but I think it's easier to just say...
Forum: General 02-23-2008, 11:40 AM
Replies: 5
Views: 978
Posted By jdg
RE: Getting a list of files

or:
ExtractFilePath(Application.ExeName);

jdg.ho

I love this forum. Your generosity is wonderful.
Forum: General 01-23-2008, 04:22 AM
Replies: 1
Views: 1,291
Posted By jdg
TTreeView - override OnExpanding event

I'm writing a decendent component of a TTreeView.
I would like to do something before a node is expanded.

I tried the following but it seems it causes an access error.
What do I need to do...
Forum: General 01-07-2008, 04:21 AM
Replies: 0
Views: 855
Posted By jdg
Property Editor for SessionNames

I'm working on a combo box component that displays databaseNames (aliases) for whatever session. This is what I've got as a property editor for SessionNames. It succeeds @ putting the current...
Forum: General 12-01-2007, 10:54 PM
Replies: 10
Views: 1,895
Posted By jdg
RE: How to validate that the path already exists?

sure.

if DirectoryExists('c:\Program Files\Borland') then
// do something.

jdg.ho

I love this forum. Your generosity is wonderful.
Forum: General 11-27-2007, 04:46 PM
Replies: 3
Views: 826
Posted By jdg
RE: Table problem ?

memo!
displays in memo.

jdg.ho

I love this forum. Your generosity is wonderful.
Forum: General 11-27-2007, 04:44 PM
Replies: 3
Views: 826
Posted By jdg
RE: Table problem ?

Wow!

Set ComboBox1 & ComboBox2 style property to DropDownList
Fill ComboBox1 with items.
Write OnChange event handler for ComboBox1 which does:
Filter table of possible values for ComboBox2
...
Forum: General 11-27-2007, 04:37 PM
Replies: 2
Views: 851
Posted By jdg
RE: delphi coding checklist

yes

jdg.ho

I love this forum. Your generosity is wonderful.
Forum: General 11-24-2007, 01:15 PM
Replies: 2
Views: 2,384
Posted By jdg
RE: TFileList Sort...

You are sorting on alpha values rather than numeric values.
You can either pad the file numbers with leading zeros so that all file numbers have the same number of characters, or you can save the...
Forum: General 11-24-2007, 07:14 AM
Replies: 5
Views: 2,411
Posted By jdg
RE: Override the copy/paste message in a ComboBox

Whoops.
You can use either Delphi's TClipboard or the Windows Clipboard routines.
For help see TClipboard in Delphi help or Clipboard in your window help file that ships with Delphi.
In my edition...
Showing results 1 to 50 of 500

 
Forum Jump

All times are GMT. The time now is 12:45 PM.


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