Getting a string from a VDF

Use this forum to post Vensim related questions.
Post Reply
SionC
Member
Posts: 39
Joined: Tue Nov 18, 2008 8:44 am

Getting a string from a VDF

Post by SionC »

Hi,

Is it possible to get a string variable value from a VDF file via the DLL?

Thanks :)
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Getting a string from a VDF

Post by Administrator »

No. I'm not sure they are even stored in the VDF (I'm re-working the format at the moment and haven't come across any string storage at all).
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
SionC
Member
Posts: 39
Joined: Tue Nov 18, 2008 8:44 am

Re: Getting a string from a VDF

Post by SionC »

Hi,

They are there, see the attached VPM file with three VDF files loaded. Refer to the variable SAMPLE STRING VARIABLE.

I am using string variables to store additional run information. It would be great to be able to get the information back into Excel via the DLL. It would also be an issue if it is no longer possible to use this functionality.

Best wishes

Sion
Attachments
StringTest.vpm
SAMPLE STRING VARIABLE hold the strings
(34.99 KiB) Downloaded 257 times
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: Getting a string from a VDF

Post by tomfid »

Could you encode the string information as numbers, or are they ad hoc and numerous?
SionC
Member
Posts: 39
Joined: Tue Nov 18, 2008 8:44 am

Re: Getting a string from a VDF

Post by SionC »

Hi Tom,

Sadly it is ad hoc information, for example a text description of a particular scenario.

Best wishes

Sion
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Getting a string from a VDF

Post by Administrator »

I should be able to add a new function to the DLL to retrieve the string variables. Just need to find the correct place in the code.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Getting a string from a VDF

Post by Administrator »

It should be available in the next release of Vensim.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
SionC
Member
Posts: 39
Joined: Tue Nov 18, 2008 8:44 am

Re: Getting a string from a VDF

Post by SionC »

That is fantastic! Thanks :)
SionC
Member
Posts: 39
Joined: Tue Nov 18, 2008 8:44 am

Re: Getting a string from a VDF

Post by SionC »

Hi,

Is this functionality planned to be in the December release of Vensim 6.4E?

Thanks

Sion
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Re: Getting a string from a VDF

Post by Administrator »

Yes.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Post Reply