IT SOLUTIONS
Your full service technology partner! 
Matt [Unspecified] -Collapse +Expand
-Collapse +Expand
Matt
-Collapse +Expand Profile
Member Info
Member Narration

POSTS:
MB Posts (14)◄╣

Search Matt:

Advanced
   ► MB Lobby   Print This     

Matt Message Board Activity

  


14 Message Board Posts:


Thread 14 of 14
Thread Starter or a Reply (but not last)  Group

Matt
Lookup a value in an array
Is there a more efficient way to look up a value in an array then this:, , for i := 0 to length(myArr) - 1 do, begin, if myArr[i] := myValue then, found := true ;, end ;, , something like, if myValue in myArr then, found := true ;, , probably a stupid question, but I'm only using Delphi occasionally (though I love it)., , TIA,, Matt
Posted to MB Topic: Delphi News / Other « Delphi Board
17 years ago

Rick Carter
{Too Long!}
17 years ago
Nothing New Since Your Last Visit
8271
Hits

Pascal and Delphi Coding

Thread 13 of 14
Thread Starter or a Reply (but not last)  Group

Matt
TForm and TComponent
Hi,, I'm trying to find a form by browsing through Delphi's application components and show the form when the right name has been found. Unfortunately, I hit a compiler error I don't know how to go about it., , var, ShowThisForm: TForm ;, , begin, for i := 0 to ComponentCount - 1 do, begin, if Application.Components[i] is TForm then, begin, if FrmNam = Application.Components[i].Name then, begin, ShowThisForm := Application.Components[i] ;, ShowThisForm.Show ;, exit ;, end ;, end ;, end ;, end ;, , end ;
Posted to MB Topic: Delphi Object PASCAL « Delphi Board
17 years ago

Matt
Exactly what I needed to know. Thanks a lot!!
17 years ago
Nothing New Since Your Last Visit
3534
Hits

Pascal and Delphi Coding

Thread 12 of 14
Thread Starter or a Reply (but not last)  Group

Matt
Re: TForm and TComponent
Exactly what I needed to know. Thanks a lot!!
Posted to MB Topic: Delphi Object PASCAL « Delphi Board
17 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 11 of 14
Thread Starter or a Reply (but not last)  Group

Matt
Which database should I select?
Have to do a quick application in Delphi 4, with a bunch of tables. The app will be installed as a relatively thin client on hundreds of user-PC's. Speed and small footprint are critical. I'm not sure which database to select. I heard the BDE is being phased out and I don't want to start something with a product that's being phased out., , Any ideas much appreciated., Tx,, Matt
Posted to MB Topic: Delphi News / Other « Delphi Board
18 years ago

Rick Carter
{Too Long!}
18 years ago
Nothing New Since Your Last Visit
2308
Hits

Pascal and Delphi Coding

Thread 10 of 14
Thread Starter or a Reply (but not last)  Group

Matt
Re: Which database should I select?
Hi Rick, thanks for the reply. I know it's religious, but I'm just occasionally developing in Delphi and probably considered "unfaithful" Ashamed , , I've gone through all the BDE stuff I could find today and I wonder: Is it still ok to develop new apps with the BDE? Or is it a waste of time?, , Your opinion much appreciated. Tx,, Matt
Posted to MB Topic: Delphi News / Other « Delphi Board
18 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 9 of 14
Thread Starter or a Reply (but not last)  Group

Matt
Deleted Files don't go to the recycle bin
Hi,, I use Delphi function DeleteFile. But the deleted files disappear right away. They don't go into the Windows Recyle bin. Big Grin! , , any ideas ??, Thanks , Matt
Posted to MB Topic: Delphi News / Other « Delphi Board
20 years ago
Nothing New Since Your Last Visit
1979
Hits

Pascal and Delphi Coding

Thread 8 of 14
Thread Starter or a Reply (but not last)  Group

Matt
Textbox Management
Hi all,, is there a function or API that returns the first [i]visible[/i] position of the text in a textbox ?, , I use a non-proportional font so there are always 42 characters displayed in a textbox. If a user enters a 43rd character, the first visible position changes to 2. If a 44th character follows, it goes to 3. However, if it is 44 and I insert something at position 2, the length is 45 yet the first visible position is 1 again. It functions indepently of the text-length. Text-length can be anything up to 9999., , I would like to call that function, if existing, in the key-press event., , TIA,, Matt
Posted to MB Topic: Delphi News / Other « Delphi Board
20 years ago

wpantoja
, var,    Text : string;,    Size : Integer;,  , begin,    Size := SendMessage(WM_GETTEXTLENGTH,0,0);,    SetLength(Text,Size+1);,    SendMessage(WM_GETTEXT,Size+1,Integer(PChar(Text)));, end;
20 years ago
Nothing New Since Your Last Visit
1490
Hits

Pascal and Delphi Coding

Thread 7 of 14
Thread Starter or a Reply (but not last)  Group

Matt
Re: Textbox Management
Tx, William. I struggled with Windows Messages before and came across the SendMessage function. One thing is totally unclear though:, , The Windows message WM_GETTEXT expects 2 parms , 1. Integer which is number of characters, , 2. Pointer which is the address of the buffer the result is returned in., , But when I use SendMessage(handle, WM_GETTEXT, parm1, parm2) Delphi forces me to use integers., , How do I correctly code the WM_GETTEXT message in Delphi ? A code example would be greatly appreciated, from there I can work out the other Windows messages., , Tx !!, Matt
Posted to MB Topic: Delphi News / Other « Delphi Board
20 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 6 of 14
Thread Starter or a Reply (but not last)  Group

Matt
Owner-drawn listbox
Hi, I created a TListBox Control in a form. Some of the items in the listbox must appear [b]bold[/b], so I set its property style = lbOwnerDrawFixed., , The part with the bold items works fine. However, at runtime, when I click on any item in the list-box, the item is 'squared in', a square appears around it. When I click on another item, same things happens, and the first square remains. This makes the list-box appearance very ugly., , I probably can catch that, but how ? and where ? (which event)., , Any feedback much appreciated., TIA,, Matt
Posted to MB Topic: Delphi News / Other « Delphi Board
20 years ago

Scott
{Too Long!}
20 years ago
Nothing New Since Your Last Visit
1129
Hits

Pascal and Delphi Coding

Thread 5 of 14
Thread Starter or a Reply (but not last)  Group

Matt
Sort sequences
Help !!, In a listbox with sorted = True, the string '~sw.tmp' is less than the string 'sw.tmp'. However, when comparing the 2 with CompareStr function, suddenly '~sw.tmp' is greater than 'sw.tmp'. That causes a lot of grief as I loop down 2 sorted listboxes, constantly comparing current entries., , Any ideas ? Help much appreciated., Matt
Posted to MB Topic: Delphi News / Other « Delphi Board
20 years ago

Scott
{Too Long!}
20 years ago
Nothing New Since Your Last Visit
3816
Hits

Pascal and Delphi Coding

Thread 4 of 14
Thread Starter or a Reply (but not last)  Group

Matt
Re: Sort sequences
Tx Scott. Meanwhile stumbled across a Delphi function called ANSIFileName. It compares 2 file-names and returns <0, >0 =0, like CompareStr() works. Seems to work, as it returns ~sw.tmp < sw.tmp = true, but I can't test with foreign locales. If you've come across anything, could you post it here ?, , Many thanks,, Matt
Posted to MB Topic: Delphi News / Other « Delphi Board
20 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 2 of 14
Thread Starter or a Reply (but not last)  Group

Matt
Re: API that retrieves directory creation date ?
:D , Tx Scott !, Tweaked it a bit. Works great !
Posted to MB Topic: Delphi News / Other « Delphi Board
20 years ago
Nothing New Since Your Last Visit
2
Hits

Pascal and Delphi Coding

Thread 1 of 14
Thread Starter or a Reply (but not last)  Group

Matt
API that retrieves directory creation date ?
Hi all,, anybody knows of an API (Delphi or Windows) that lets me retrieve the creation date of a directory ? , , I have no problems doing that with files, as I can instantiate them as file-streams, get a handle and call the API. Haven't found anything that works for directories though. I just can't 'stream' them., , Any feedback much appreciated. I'm on Delphi 4 pro., Thanks,, Matt
Posted to MB Topic: Delphi News / Other « Delphi Board
20 years ago

Matt
:D , Tx Scott !, Tweaked it a bit. Works great !
20 years ago
Nothing New Since Your Last Visit
1652
Hits

Pascal and Delphi Coding
Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


©1995-2021 Prestwood IT Solutions.   [Security & Privacy]