Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1559

Does COBOL have the equivalent of the c# Using statement?

$
0
0

This is the link to the MSDN using Statement documentation: http://msdn.microsoft.com/en-us/library/yh598w02.aspx

This is how it's coded in DevExpress:

using(UnitOfWork uow = new UnitOfWork()) {
    // Create, update or delete objects
    uow.CommitChanges();
}
 CommitChanges is used to update the database.

If Visual COBOL doesn't support the using statement, maybe I could call the Dispose method, which I'll need to work out.  Something like:

invoke uow::Dispose as type IDisposable (please correct me if this is wrong)


Viewing all articles
Browse latest Browse all 1559

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>