Hi everyone, I'm having trouble using datamodule's public functions and variables on xe6, like I was used to do on D7, D2007 ...any ideas?

Comments

  1. You need to provide what is happening.

    ReplyDelete
  2. Hi Richard Baroniunas ...for example I have a datamodule like this:

    type
      Tdata = class(TDataModule)
        conn: TADOConnection;
      private
        { Private declarations }
      public
        db_usr:String;
        db_pwd:String;
        function NextTra( id:integer ):String;
    end;

    in D7, or D2007 I can reference all public variables and functions like data.db_usr, data.db_pdw or call it's public functions tra := data.NextTra(x); ...but not in xe6

    ReplyDelete
  3. Just found out that I must declare a variable like data1: Tdata so I can reference all variables and procedures, etc... within other forms

    ReplyDelete
  4. Great, i knew it was something simple.  That is why always put a sample of code for review.  Good luck Rubén Trejo C.

    ReplyDelete
  5. I'll keep that in mind Richard Baroniunas ...have a great day!!

    ReplyDelete

Post a Comment