{"id":697,"date":"2011-01-21T20:20:34","date_gmt":"2011-01-22T01:20:34","guid":{"rendered":"http:\/\/anvil-of-time.com\/wordpress\/?p=697"},"modified":"2021-03-10T19:19:03","modified_gmt":"2021-03-11T00:19:03","slug":"powerbuilder-adding-a-structure-to-an-nvo","status":"publish","type":"post","link":"https:\/\/anvil-of-time.com\/powerbuilder\/powerbuilder-adding-a-structure-to-an-nvo\/","title":{"rendered":"PowerBuilder &#8211; Adding a Structure to an NVO"},"content":{"rendered":"<p>It is possible to define a structure within an non-visual object.  You can view\/ or edit the source of the nvo and insert the structure definition directly:<\/p>\n<pre name=\"code\" class=\"VB\">global type nvo_case from nonvisualobject\nend type\ntype str_test from structure within nvo_case\nend type\nend forward\n\ntype str_test from structure\n\tstring\t\tas_parm1\n\tstring\t\tas_parm2\nend type\n\nglobal type nvo_case from nonvisualobject...[other code below]<\/pre>\n<p>The structure can be instantiated within scripts just like a &#8216;normal&#8217; global structure.<\/p>\n<p>Once I did this (PB11.5) a new window appears below the code portion of the nvo painter which allows you to declare additional structures.  You can also do the menu option Insert &#8211; Structure and view them with View &#8211; Structure List.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is possible to define a structure within an non-visual object. You can view\/ or edit the source of the nvo and insert the structure definition directly: global type nvo_case from nonvisualobject end type type str_test from structure within nvo_case end type end forward type str_test from structure string as_parm1 string as_parm2 end type global&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[12],"_links":{"self":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/697"}],"collection":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/comments?post=697"}],"version-history":[{"count":4,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/697\/revisions"}],"predecessor-version":[{"id":1920,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/697\/revisions\/1920"}],"wp:attachment":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/media?parent=697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/categories?post=697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/tags?post=697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}