I have tried local variables, initializedictionary DICTIONARY, KEY, VALUE, I have also tried vProgram=|vPeopleDictionary=initializedictionary(|+ vMyDataToStartWith+|)| what am I doing wrong?
Gary’s answer was useful, but didn’t really address the question of what you are doing wrong. You are passing a single string to the initializedictionary( function, when what is really needed is separate parameters. The fact that you have quotes and commas in the string is immaterial, it is still just a single string. So synctactically, your code is no different from
I think the dictionaryfromarray( function might be useful to you. Then you just need to generate an array with the field names and data, but apparently you are somehow doing something almost like that already.
It might be nice in the future to have a function that automatically created a dictionary from a database record in a single step, I’ll keep that idea in mind. Since this probably won’t happen anytime soon, I’ve recorded the idea in the issue tracker.