Using VB .NET with Mosel - Reading records

21 views
Skip to first unread message

BN

unread,
Dec 8, 2008, 6:00:09 PM12/8/08
to Xpress-MP
Hi,

My first post in this forum. Hope this group is still active.

I have a Mosel model built and compiled and it works fine without any
issues. But I would like to call and run the model from within
VB .NET. I am actually able to run and solve the model as well using
the Mosel .NET reference library (xprmdn.dll). But my problem is with
accessing data elements within my model from VB. I can read and
display standard data types like int, strings or sets and arrays of
these. But I have my own defined data types in the form of records and
arrays/sets of records and I am not able to read them using the
methods available.

For example, if I have a record type like this is my model, how do I
read it from VB? I would like to print MyData.s, MyData.l, MyData.long
etc to the output file.

MyData:record
s:string
l: real
long: real
Inner: integer
Outer: integer
end-record

Thanks

BN
Reply all
Reply to author
Forward
0 new messages