PreviousNext
Help > Easycom .NET > Easycom namespace > EasycomFile > Example
Example

EasycomConnection ConnectionIBM new EasycomConnection();

 

ConnectionIBM .ConnectionString = "Server=" + textBoxServer.Text + ";User Id=" + textBoxUser.Text + ";Password=" + textBoxPwd.Text + ";Pooled=False";

 

ConnectionIBM.Open();

 

EasycomFile ecfile = new EasycomFile(ConnectionIBM, "EASYCOMXMP/SP_CUST", openFileAccess.ReadWrite);

 

              ecfile.ReadFirst();

              

string result = ecfile.GetValue("LASTNAME").ToString() + " - " +        ecfile.GetValue("FIRSTNAME").ToString();

            MessageBox.Show("Customer found : " + result);