Hi,
I'm not sure how to use AddObject.
What I wanna do is...
I use 3 TEdits, 1 TListBox, and 1 TButton.
I write some words in each Edits.
When I push the Button, the name I put into Edit1 will be shown in ListBox.
Then if I choose a certain name from ListBox, the information I put into each...
Hi, there.
I want to delete an element from a dynamic array.
I read Delphi's help and it tells that I can use Delete to delete an element from an array.So I used Delete but it doesn't work. An error occurs.
Thanks in advance.
Hi,
Sorry for asking a stupid question.But I'm really confused.
In OnkeyPress, this code works properly.
if Key = #13 then Key := #0;
But these code in OnKeyDown don't work. Why?
if Key = Ord('a') then Key := 0;
if Key = VK_ENTER then Key := 0;
Of course KeyPreview = True.
Thanks in advance.
Hi,
This is what I want to do...
I use 2 forms. Form1 has a Listbox, an Edit, and two Buttons.I input someone's name to the Edit.Then when I push the Button, the name will be added to the ListboxItems.
When I push the other Button, Form2'll be shown which has 3 Edits and one Button. Edit1 has...
Hi,
With TEdit, I want to put '-' just before and after numbers like that.
-123 or 123-
NOT like -12-3, 123--, -123-
I wrote the code provided below but this one can control '-' put only before numbers.
(OnKeyPress event)
if (Key = '-') and (Edit1.SelStart <> 0) then
begin
Key := #0...
Hi,
I'm completely new to Delphi and I need help.
How can I split the string and add comma every three digits like that?
abc,def,ghi
I could split numbers using FormatFloat but string???
Thank you for any help.
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.