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!

Search results for query: *

  1. Froskoy

    Compound SQL query

    Hi, I'm just starting with SQL and have quite a basic question. I have a table People with the following fields: PersonID, Name, CountryID Sample data: 1 Bob 4 2 Jim 5 3 Bill 5 A Countries table with the following fields: CountryID, Name, ContinentID Sample data: 4 USA 1 5...
  2. Froskoy

    Data types

    Hi, How many bytes of storage does a real data type require? I'm trying to predict the filesize of a rather large file. Also, is an integer data type sufficient for storing values which will range from 747 to 1646 inclusive. If not, would it store values between -255 and 644? Thanks very...
  3. Froskoy

    Creating images dynamically - why isn't this code working?

    Sorry - I wasn't actually calling the procedure anywhere - the code does work! Silly me. Sorry.
  4. Froskoy

    Creating images dynamically - why isn't this code working?

    Hi, I'm playing around with creating images dynamically in Delphi 4. This code works when placed in the FormCreate procedure but not when placed in its own procedure. Why not? The form is called frm1. for i:=1 to 10 do begin imgBT[i]:=TimgBT.Create(frm1); with...
  5. Froskoy

    Calling a function

    Hi, I've got a local variable A contained within a procedure. I've got a function A which I want the value of to be assigned to the local variable A: function A (b:Integer) : Integer; begin blah end; procedure ThisProcedure; var A,b : Integer; begin blah A:=A(b); end; Obviously...
  6. Froskoy

    Delphi joystick control

    Hi, I want to use a joystick in one of my programs in Delphi 4. I've never even used a joystick before. This joystick seems to have all the controls to suit my purposes and I very much like the look of it...
  7. Froskoy

    Shape rotation

    Thanks very much for your reply. I've made an array of TPoint so I can use the code pretty much as supplied in the link. Here's my code: type TBoatTop = array[1..3] of TPoint; var shpBoatTop : TBoatTop; procedure TfrmRotation.FormCreate(Sender: TObject); begin //creates triangle of...
  8. Froskoy

    Mask edit type

    is not a valid integer value.
  9. Froskoy

    Mask edit type

    Thanks for the reply. Mask is 000.
  10. Froskoy

    Shape rotation

    Hi, I'm trying to rotate a rectangle in Delphi 4. I looked at this: http://www.delphi3000.com/articles/article_1466.asp?SK which is the sort of thing I'm looking for but this requires a collection of points, and I need to rotate a shape. I can't install any extra components, as my...
  11. Froskoy

    Mask edit type

    Hi, I'm using a mask edit but don't seem to be able to use the StrToInt() function as I can with the contents of a normal edit box. How can I convert the contents of a mask edit box to an integer? Many thanks, Froskoy.
  12. Froskoy

    Syntax on conditional statements

    Yes, that is pretty cool. Thanks for posting that idea.
  13. Froskoy

    Syntax on conditional statements

    I am glad. What is it?
  14. Froskoy

    Syntax on conditional statements

    Thanks very much whosrdaddy. That's really helpful and makes that sort of thing make more sense to me now so will be helpful in future as well. Thanks also Glenn9999, that does look neat and something that I hadn't thought of off the top of my head.
  15. Froskoy

    Syntax on conditional statements

    It compiles fine.... it's a logical error I'm worried about. Will it ultimately give the same result?
  16. Froskoy

    Syntax on conditional statements

    Is saying if (Intensity=24) or (Intensity=25) then TempGetColour:=RGB(168,168,168); exactly the same as if (Intensity=24 or 25) then TempGetColour:=RGB(160,160,160); ? Thanks very much, Froskoy.
  17. Froskoy

    Dealing with rectangles in Delphi

    Yes! That helps immensely. Thank you very much for that. I like the structure and posts on this forum. I think I'll be coming back for more!
  18. Froskoy

    Dealing with rectangles in Delphi

    Hi, I have a series of rectangles on a form as follows: rec0801 rec0802 rec0804 rec0805 ....... rec0824 . . . . rec0201 rec0202 rec0203 rec0204 ....... rec0224 rec0101 rec0102 rec0103 rec0104 ....... rec0124 A bit like pixels. I need to manipulate these rectangles every time a timer...

Part and Inventory Search

Back
Top