Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread checking stLocal property of session component
Sat, Jan 15 2011 6:16 PMPermanent Link

Oliver

METTRIX

Seems this should work. what am I doing wrong? I just need to know if my session is stLocal or stRemote:

if DataModule1.EDBSession1.SessionType = stLocal   then   
 begin ... end;

But the delphi compiler complains that  stLocal is an undefined identifier.

I have  no problems using other datamodule1 componens such as an EDBQuery so I know I have access
to DataModule1.

Any ideas?

Thanks

Oliver
Sun, Jan 16 2011 5:16 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Oliver


slLocal is defined in edbcomps so you need that in the unit where you're carrying out the test.

Roy Lambert

Sun, Jan 16 2011 11:32 AMPermanent Link

Oliver

METTRIX

Thanks Roy, this is so obvious that I am ashamed to admit it.

Oliver


Oliver wrote:

Seems this should work. what am I doing wrong? I just need to know if my session is stLocal or stRemote:

if DataModule1.EDBSession1.SessionType = stLocal   then   
 begin ... end;

But the delphi compiler complains that  stLocal is an undefined identifier.

I have  no problems using other datamodule1 componens such as an EDBQuery so I know I have access
to DataModule1.

Any ideas?

Thanks

Oliver
Mon, Jan 17 2011 4:07 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Oliver


If I admitted to the number of times I've been bitten by something similar....

Roy Lambert
Image