C# declaration statements for iSeries

  • Thread starter Thread starter bebek_tetangga
  • Start date Start date
B

bebek_tetangga

The following code is provided by cwbx.hlp for VBA. Does anyone have
the same declaration statements for C#? I'm interested in the
equivalent of the dlr.Query.Select VBA statement in particular. C#
prevents me from using IcwbxDatabaseQuerySettings (abstract class) and
DatabaseQuerySettings (protected)... Thanks!!!

Dim systemNames As New cwbx.systemNames
Dim dt As New cwbx.DatabaseTransfer
Dim as400 As New cwbx.AS400System
Dim dlr As New cwbx.DatabaseDownloadRequest
as400.Define systemNames.DefaultSystem
Set dlr.System = as400
dlr.AS400File = "qiws/qcustcdt"
dlr.pcFile = "c:\qcustlst.txt"
dlr.Query.Select = "LSTNAM"
dlr.SaveRequest "c:\qcustlst.dtf"
dt.UserID = "me"
dt.Password = "secret"
dt.Transfer "c:\qcustlst.dtf"
dt.UserID = ""
dt.Password = ""
dt.Transfer "c:\qcustlst.dtf"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top