Search code examples
vb.netintersystems-cacheintersystems

How to change a GLOBAL Node's value with VisM?


I have access with VisM via VB.net, and can query GLOBAL nodes with it. However, let's say I have a node that looks like this,

^KOT("CNTR","KOT")  =   38499

how can I chage the value 38499 to something else? like an update?


Solution

  • It is very easy to do, just set new value to P0, and execute COS command SET this value to the global

    AxVisM1.P0 = "newvalue"
    AxVisM1.Execute("set ^KOT("CNTR","KOT")=P0")