Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by hayate

  1. hayate

    how to use AddObject

    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...
  2. hayate

    delete an element from a dynamic array

    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.
  3. hayate

    onkeypress and onkeydown

    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.
  4. hayate

    keep TEdit informaion

    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...
  5. hayate

    control input into TEdit

    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...
  6. hayate

    How can I polint off the string?

    >towerbase I tried the code you told me and it worked quite well. Thank you very much!
  7. hayate

    How can I polint off the string?

    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.

Part and Inventory Search

Back
Top