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 SkipVought 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. ddverne

    Problem with "Variant" Data Type inside a Record

    Hi DjangMan, In fact I could create a class etc. But I would like to try this without using objects, since it will be a constant and everything is already done, my only concern is about to using a data type which could store (pre-determined) array length of some type of data. Let's forget...
  2. ddverne

    Problem with "Variant" Data Type inside a Record

    Hi Guys, I'm having some trouble when I'm trying to Initialize a constant record when one of the types is a "VARIANT" one. For example: This WORKS: const myRec : array [0..1] of record Num : integer; Str : string; end = ( (Num: 100; Str: 'ABC'), (Num: 200; Str: 'DEF') ); But...
  3. ddverne

    Inherited Form vs Missing Unit

    Well, I've found a way through using components, it was not as I had imagined for my project, but anyway It worked very well.
  4. ddverne

    Inherited Form vs Missing Unit

    Hi everybody, I created a Form and in the "uses" of this Form, I declared an unit called "UGLOBAL", after that, I saved it as FormPattern. So, I went into: File->New->Other and I chose the form above and the Inherit option, and it was generated a new Form as I had setted, but missing the...
  5. ddverne

    Object vs Exists vs Creating

    Hi Prattaratt, You gave me a great help when you told about your C++ initialization. I did the same thing on my TADOConnection reference: // Global var conn := TADOConnection = nil; And now I know the condition. Well I'm a little rusty with Delphi, since I don't use it since last year...
  6. ddverne

    Object vs Exists vs Creating

    Hi Prattaratt, In fact I'm already using a global unit for connection and other things. The code above is just an example, in my main code I'll not declare it locally. My main point on this example is how can I do to know if the the object is already created. (In this case I'm using...
  7. ddverne

    Object vs Exists vs Creating

    Hi everybody, I'm having a little trouble to check if an object was already created. I tried some examples that I've found on google but without any lucky. Example: procedure TForm1.TestClick(Sender: TObject); var conn : TADOConnection; begin try if not Assigned(conn) then...
  8. ddverne

    Constructor, Create and Access Violation, why?

    Prattaratt, I understood. Thank you very much.
  9. ddverne

    Constructor, Create and Access Violation, why?

    Hi, I created the following class: type TDBConector = class(TCustomClientDataSet) Conn : TADOConnection; private DBConfig : TDBConfig; public constructor Create(Aowner : TComponent); overload; end; And the constructor where the error occurs, in fact the error occurs on the...

Part and Inventory Search

Back
Top