@Glenn (Sky Eagle ;-)) - BIG Thanks!!!
You put it right where I hoped you would!
@ug - That code is no doubt over most of our heads, including mine; which is why I said:
So I challenge you to seize the opportunity. The short easy answers are soon forgotten!
Roo
Delphi Rules!
Glenn - That was not only the longest thread in Tek-Tips history but one of the most interesting and educational ever. Although I did my best to follow it back in 2008, my workload at the time was prohibitive. Now that I have some time (and that this post reminded me) I've decided to review it...
Your post does not include how you defined Nindex and Objectthickness. "array of double" implies Dynamic arrays, rather than Static. You also did not show how you initialized the arrays, nor how you have populated them.
Have you viewed them with a "Watch" or "Inspector" Window to see that they...
Dude - Both '<' and '>' are reserved characters for 'less than' and 'greater than', respectively. Something any 'Ancient Hacker' should know. LOL
Roo
Delphi Rules!
...boolean;
function SaveDatesToDB: boolean;
public
{ Public declarations }
end;
var
Form3: TForm3;
implementation
{$R *.dfm}
function TForm3.GetDatesFromDB: boolean;
//Get 2 arbitrary dates for testing
//Return TRUE if successful
begin
StartDate:= StrToDate('06/15/2010')...
Consider the following code:
if true the begin
a:= 1;
a:= 2;
a:= 3;
end;
When exiting this if statement, the program can NEVER return values 1 or 2 for "a". "a" will ALWAYS equal 3.
I think this is what the compiler is telling you. (in BOTH examples)
Roo
Delphi Rules!
Using XP SP3 w/ IE-8, your code ran just fine for me under D7 (with TImage). I tried several URLs. All of them worked as desired except for http://www.msn.com/ which consistently raises an invalid floating point error. Go figure!
Have you tried installing SP3?
Roo
Delphi Rules!
I was afraid of offending... My comment was not directed to the two of you, but more to the person(s) requesting it.
I did a lot of development for modem/serial/device communications (and even IEEE-388) back in the late 80's to early 90's, hence my interest in this thread. I quite appreciated...
No offense but it seems archaic that someone would choose dialing a pager with a modem in this decade when there are already ways to send an IM to a cell phone.
Roo
Delphi Rules!
If you are trying to change the image displayed, based upon the state (up, disabled, clicked, down) of TButton, then you are doing a lot of work for nothing. Use TBitBtn instead. It already has this functionality built in.
See "Glyph property (TBitBtn)" in Delphi Help.
Roo
Delphi Rules!
The ONLY difference between a repeat..until and a while...do is that the repeat..until will always execute (whatever is between) at least ONCE.
Therefore, neither is more appropriate. It depends only on your needs.
Roo
Delphi Rules!
Add AciveX to your uses clause, then add the following code right before the final END. statement to your web form:Initialization
begin
OleInitialize(nil)
end;
Finalization
begin
OleUninitialize
end;
end.
Roo
Delphi Rules!
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.