intersystems-cache

Get GLOBALS similar to “Global Search Mask” Intersystems Cache

南楼画角 提交于 2019-12-06 14:51:48
I can use VisM now to execute Intersystem Cache Objectscript through vb.net 'open the connection AxVisM1.Connect("CN_IPTCP:127.0.0.1[1972]") 'set namespace to livedata (for formal namespaces, use the @ symbol) AxVisM1.NameSpace = "LIVEDATA" 'okay, so kunin mo na si GLOBALS... 'set value to nothing muna AxVisM1.VALUE = "" 'next, get mo yung value via this syntax AxVisM1.Code = "Set VALUE=$GET(" & theGlobals & ")" 'execute AxVisM1.ExecFlag = 1 'close the connection AxVisM1.DeleteConnection() 'now, pass the results to.. a textbox? Return AxVisM1.VALUE you can execute objectscript by passing it on

What is the current preferred method for enumerating the globals in a namespace?

孤街浪徒 提交于 2019-12-06 04:17:35
问题 I used to look at the source for %G for this, but lately Intersystems has stopped distributing the .INT code. I guess in theory I could use an eXecute statement in a loop to check $D on every legal global name but that's silly and unreasonably slow. So what is currently the right way to do it? 回答1: use special global variable ^$GLOBAL for example: s global="" f { s global=$o(^$G(global)) q:global="" zw global } 回答2: You could always use the class query in %SYS.GlobalQuery. 来源: https:/

What is the current preferred method for enumerating the globals in a namespace?

让人想犯罪 __ 提交于 2019-12-04 10:16:59
I used to look at the source for %G for this, but lately Intersystems has stopped distributing the .INT code. I guess in theory I could use an eXecute statement in a loop to check $D on every legal global name but that's silly and unreasonably slow. So what is currently the right way to do it? use special global variable ^$GLOBAL for example: s global="" f { s global=$o(^$G(global)) q:global="" zw global } You could always use the class query in %SYS.GlobalQuery. 来源: https://stackoverflow.com/questions/9793241/what-is-the-current-preferred-method-for-enumerating-the-globals-in-a-namespace