if cLoginMode.ItemIndex > 0 then// if you want authentication (user or certificate)begin
dOPCDAClient1.SetParam('ua-usermode', cLoginMode.ItemIndex.ToString);
dOPCDAClient1.SetParam('ua-user', eUser.Text); // user name
dOPCDAClient1.SetParam('ua-pass', ePass.Text); // user passwordend;