"<>W" will strip whitespace so it doesn't end up in your global keys, more here on this...
https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_fzstrip
Globals have a tree like structure, you can have many combinations of branches in the structure, but eventually your end branches (or leaves) will have to contain a value, even if that value is an empty string. It is not possible to set these end branches without a value, so you will always end up with a global looking like this...
^People("Customers", "Acc.divison", 1235.987)=""
^People("Customers", "Acc.divison", 3214.879)=""
Note also that the last key is a numeric value, so it will be automatically sequenced in numerical order, before any string values.
There is a post here that goes into more detail on globals...
https://community.intersystems.com/post/globals-are-magic-swords-managing-data-part-1
- Log in to post comments