A dictionary is a special type of binary value. That’s not what you have there, so ChangeDictionaryName is inappropriate. You can do this with a FormulaFill, and the replace function.
Dave is correct, the change command modifies all selected records, so at the moment you need to use formulafill and replace( to get this functionality.
The problem with the change statement is that it uses a completely different syntax than most other Panorama statements. First of all, it uses spaces instead of commas as parameter separators. Also, the optional word and caps parameters don’t have quotes. Because of these issues, Panorama X doesn’t support this statement. There is simply no reasonable way to make it work with an unmodified Panorama 6 change statement.
At some point I may make a similar statement that uses the new Panorama X syntax conventions. But I probably won’t use the name change since that would probably be even more confusing. In the meantime, use formulafill and replace(.
It would be nice if there was some way to document this in the Help system. I’m not sure where to put this in a way that you would find it, but I will think about that.
admin
September 21
It would be nice if there was some way to document this in the Help system. I’m not sure where to put this in a way that you would find it, but I will think about that.
Might I suggest simply making a short help topic called “Change” that says something like “This statement from P6 is now no longer available. Instead, use [etc…]” That way people like Sal looking for a way to do this, either P6 users or beginners, will be steered to what they need. I realize that doing stuff like this could take you the rest of your life; you’d be rewriting the beloved old Panorama cookbook that was so useful to so many of us teaching ourselves Pan programming, and you have other things to do right now. But when something like this comes up it could be a candidate for a 5 minute quickie.
Thanks! Sadly, sometimes it feels like I’m doing everything wrong
simply making a short help topic called “Change” that says something like "This statement from P6 is now no longer available.
Yes, that is the obvious thing to do. I might have to do some jiggering to be able to do that, though – the help system is not set up to document things that don’t exist. So that’s what I meant when I said “it would be nice if there was some way” – I might have to make a slight change to the programming of the help system to allow this. So I was just thinking aloud, kind of.
Another option might be to make a new statement that has the word change in it, for example changetext or changeinfield or changefromto or something like that.