Re: [DUG]: Headache material

2002-10-28 Thread Robert Martin
Man you've got to be quick to get your answer on to the List, I've just posted mine and received 4 other worthy replies. Rob Software engineer Wild Software Ltd Ph 03 338-1407 - Original Message - From: "Alistair George" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAI

Re: [DUG]: Headache material

2002-10-28 Thread Robert Martin
Panadol (Morphine to follow if required) Don't use a For loop use a while loop. For loops evaluate Count only once (when they Start), while loops perform the evaluation each time they loop. So For loops offer better performance (less evaluation) but break if the number of items to be iterated th

Re: [DUG]: Headache material

2002-10-28 Thread Glen Boyd
Hi, --On Tuesday, October 29, 2002 13:50:59 +1300 Alistair George <[EMAIL PROTECTED]> wrote: Hi all. I am having a problem with tmemo in that if I delete one item in the loop below the memo is stuffed afterwards. But in the second example memo is OK. Any tips?? Logically, memo count is adjusted

Re: [DUG]: Headache material

2002-10-28 Thread Jeremy North
If deleting items from a list you should count backwards. for tval := Memo1.Lines.Count - 1 downto 0 do JED = Hi all. I am having a problem with tmemo in that if I delete one item in the loop below

[DUG]: More than one way of skinning a cat

2002-10-28 Thread Alistair George
Probably a more elegant solution exists but the following works: tval := 0; while tval < memo1.lines.Count do begin with memo1.Lines do begin if (directoryexists(strings[tval])) then //its DEFINITELY a directory if not dirhasfile(strings[tval]) then begin

RE: [DUG]: Headache material

2002-10-28 Thread Conor Boyd
I haven't looked at your code closely, but one suggestion (a good one in general) is to work downwards when deleting things - I suspect this could be your problem. e.g. for tval := Pred(memo1.Lines.Count) downto 0 do HTH, Conor P.S. Not really being anal, but having come back from holiday afte

[DUG]: Headache material

2002-10-28 Thread Alistair George
Hi all. I am having a problem with tmemo in that if I delete one item in the loop below the memo is stuffed afterwards. But in the second example memo is OK. Any tips?? Logically, memo count is adjusted after one item deleted but tval is inc'd for next. Tval needs to be dec'd prior to next count (I

RE: [DUG]: TabSheet visible property

2002-10-28 Thread Jason Coley
OK, I just saw the answer, duh, the tabvisible property, OK must be time for a coffee already   Jason   -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jason Coley Sent: Tuesday, 29 October 2002 9:14 a.m. To: 'Multiple recipients of list delphi

[DUG]: TabSheet visible property

2002-10-28 Thread Jason Coley
Good morning everyone!   I have just been playing with a PageControl and have a few tab sheets on it and would like to have a couple of the tabs invisible until certain criteria are met, but when I change the visible property to false in the designer when I go back to it its visible again

Re: [DUG]: Auckland DUG Meetting

2002-10-28 Thread Chris Reynolds
Enough of this sitting it feeling guilty. I'll do it but it will be unprepared!!! If it isn't working people will have to tell me to stop. >Sorry Neven, I'm frantically working towards a 31st Oct completion date. Next time, >if required. >> >> Can you present tonight on UML >>

Re[2]: [DUG]: Needs some help please

2002-10-28 Thread Alistair George
Hello Dennis, MSB is the high (Most) significant bit eg, the leftmost BIT not byte. Regards, Al+ Tuesday, October 29, 2002, 8:13:23 AM, you wrote: DC> Message DC> Is the MSB (Most significant byte) to the left or to the right? If it is to DC> the left, DC> ieventclass := (eventpack[3]

Re: [DUG]: Auckland DUG Meetting

2002-10-28 Thread Chris Reynolds
Sorry Neven, I'm frantically working towards a 31st Oct completion date. Next time, if required. > > Can you present tonight on UML > --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]

[DUG]: Q.

2002-10-28 Thread Alistair George
Hi all, Is there a function like: IsDirectoryEmpty(string); or DirFileSize(string); If so, what is it please. Al+ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.

[DUG]: TDBGrids

2002-10-28 Thread Paul Mckenzie
G'Day   Has anyone come across this, and fixed it ... I am using D6 TDBGrid with multi-select on (it is a TBDGrid descendant  - but it appears to be the TDBGrid functionality that has changed - between D5 & D6). Fot the Grid we have a Popup menu (right-Click activation).   What happens is:

Re: [DUG]: Needs some help please

2002-10-28 Thread Dennis Chuah
Message Is the MSB (Most significant byte) to the left or to the right? If it is to the left, ieventclass := (eventpack[3] and $F0) shr 4; ieventflags := (eventpack[3] and $0C) shr 2; iTmpSession1 := eventpack[3] and $03; If its to the right ieventclass := (eventpack[0

[DUG]: Auckland DUG Meetting

2002-10-28 Thread Neven
Chris   Can you present tonight on UML   If you need anything (Dataprojector etc) Pls contact Alice Kennedy at Borland   [EMAIL PROTECTED]   Unfortunately I wont be available today (I driving from Hastings back to Auckland) So any changes will have to be worked out on the DUG Mailing list  

[DUG]: DUG Meeting

2002-10-28 Thread Neven
Hi Guys   Just a reminder DUG ing is tonight at   Borland Level 4 Landmark House 187 Queen Street   5:30 kickoff, Lawrence Wilkinson on F1 Software (How many of you guys write software that does 0-100kph in 2.7 sec) 6:00 Drinks Delphi and UML 6:30 End    Regards Neven N.K. MacEwan B.E. E&E P