Page 1 of 1
Getting a string from a VDF
Posted: Fri Sep 09, 2016 4:07 pm
by SionC
Hi,
Is it possible to get a string variable value from a VDF file via the DLL?
Thanks

Re: Getting a string from a VDF
Posted: Sat Sep 10, 2016 8:00 am
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).
Re: Getting a string from a VDF
Posted: Mon Sep 12, 2016 7:59 am
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
Re: Getting a string from a VDF
Posted: Mon Sep 12, 2016 2:58 pm
by tomfid
Could you encode the string information as numbers, or are they ad hoc and numerous?
Re: Getting a string from a VDF
Posted: Mon Sep 12, 2016 3:17 pm
by SionC
Hi Tom,
Sadly it is ad hoc information, for example a text description of a particular scenario.
Best wishes
Sion
Re: Getting a string from a VDF
Posted: Mon Sep 12, 2016 3:50 pm
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.
Re: Getting a string from a VDF
Posted: Mon Sep 12, 2016 4:44 pm
by Administrator
It should be available in the next release of Vensim.
Re: Getting a string from a VDF
Posted: Tue Sep 13, 2016 7:58 am
by SionC
That is fantastic! Thanks

Re: Getting a string from a VDF
Posted: Tue Nov 15, 2016 8:56 am
by SionC
Hi,
Is this functionality planned to be in the December release of Vensim 6.4E?
Thanks
Sion
Re: Getting a string from a VDF
Posted: Tue Nov 15, 2016 9:06 am
by Administrator
Yes.