How to correctly assign to a named data source (BT 10.1 SR4) フォローする
I have been using Format.NamedSubStrings("mydatasource").Value for a long time to both get and set values of named data sources. However, I've recently noticed that assigning this way doesn't actually seem to be intended?
Say I have a data source called mydatasource somehwere on the label and then have VBScript in the OnAutoSelectedEvent with this simple code:
Format.NamedSubStrings("mydatasource").Value = "test"
...while the value "test" does actually get assigned to mydatasource, the script triggers a "Script Endless Loop" error immediately aftewards. Say I have 2 such lines of code, the second one doesn't even get executed anymore.
That said, when printing, it does seem to work fine. But I couldn't actually find any reference in the help documentation explicitely mentioning that the above is allowed - so now I wonder whether I've been "doing it wrong" all this time?