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
You need to provide what is happening.
ReplyDeleteHi Richard Baroniunas ...for example I have a datamodule like this:
ReplyDeletetype
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
Just found out that I must declare a variable like data1: Tdata so I can reference all variables and procedures, etc... within other forms
ReplyDeletethank you Richard Baroniunas !
ReplyDeleteGreat, i knew it was something simple. That is why always put a sample of code for review. Good luck Rubén Trejo C.
ReplyDeleteI'll keep that in mind Richard Baroniunas ...have a great day!!
ReplyDelete