I was wondering if you would help.
I have an app written in c# that uses a reference from IBM (cwbx).
Originally using v5 I called the function;
var download = new DatabaseDownloadRequest
{
system = host,
UseCompression = true
};
download.AS400File.Name = tableNames;
tempFileName = Path.GetTempFileName();
fileDescriptionFile = Path.GetTempFileName();
download.PCFile.Name = tempFileName;
download.PCFile.FileType = delimiterType;
However, IBM in their wisdom have changed the function .PCFile to .pcFile, causing my app to break.
This would not be an issue if all users within my company used the latest version, but there will be a slow uptake on this, so I need to be able to use both.
Is there any sort of function where I can upper or lower case the function that I need to use so that it will be the same, or can you think of any other way I can do this?
Thanks,
Dave
I’d recommend wrapping these calls into a class that you’ve created which accesses them using reflection. I can’t imagine any other approach is going to result in anything stable.