{"id":11172,"date":"2017-12-01T05:03:01","date_gmt":"2017-12-01T05:03:01","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=11172"},"modified":"2017-12-01T05:03:01","modified_gmt":"2017-12-01T05:03:01","slug":"how-to-get-the-comment-defined-in-the-header-of-an-object-defined-in-an-adonix-application","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2017\/12\/01\/how-to-get-the-comment-defined-in-the-header-of-an-object-defined-in-an-adonix-application\/","title":{"rendered":"How to get the comment defined in the header of an Object defined in an Adonix application?"},"content":{"rendered":"<p>You may have come across a situation where you want to returnreturns the comment defined in the header of the file for which the path is created with the various parameters passed.<\/p>\n<p>Syntax:<\/p>\n<p>filcom(directory, filnam, extens [, appli [,vol [,mach]]])<\/p>\n<p>Example:<br \/>\nIf the CLIENT table exists in the current application or in one of<br \/>\nits reference applications, display the comment of this table<br \/>\nIf filinfo(filpath(&#8220;FIL&#8221;, &#8220;BPCUSTOMER&#8221;, &#8220;srf&#8221;, -1)) &gt;= 0<br \/>\nInfbox filcom(&#8220;FIL&#8221;, &#8220;CLIENT&#8221;, &#8220;srf&#8221;, -1)<br \/>\nEndif<\/p>\n<p>Description and Comments<br \/>\nThe filcom function returns the comment defined in the header of the file for which the path is created with the various parameters passed. If no comment were defined, it returns the empty string. The file must exist.<br \/>\nThe construction rules for the file path are the same as for the Filpath function. You will determine the following:<br \/>\n\u00b7 The last three parameters are optional, since the others may be empty strings. The parameters that are too long will be truncated.<br \/>\n\u00b7 Under Windows 95 and Windows NT, you may use the slash (\/) instead of the backslash (\\) in the directory and fil_nam.<\/p>\n<p>\u00b7 If the directory begins with an exclamation point (!), then Adonix ignores the appli parameter<br \/>\n\u00b7 If the directory is the period (.), then Adonix creates a corresponding path beginning with period slash (.\/) and ignores the appli and vol parameters.<\/p>\n<p>\u00b7 If filnam begins with a slash (\/), then Adonix creates an absolute path and ignores the appli and vol directory parameters<br \/>\n\u00b7 If filnam contains a period (.) (i.e., is in the &#8220;A.B&#8221; format), then Adonix considers that the first part (&#8220;A&#8221;) is the application and the second (&#8220;B&#8221;) is a file of this application. Adonix does not then take the appli parameter into account.<\/p>\n<p>\u00b7 If appli has a positive value, Adonix considers that the file is in the reference application of &#8216;appli&#8217; number.<br \/>\n\u00b7 If the name of the application (or its number) is not specified, everything takes place as if it were worth -1<br \/>\n\u00b7 If appli equals -1, the file is first searched for in the current application. If it is not found there, it is searched for in the reference applications, in the order in which they were declared. Finally, if it is still not found, everything takes place as if it existed in the current application.<br \/>\n\u00b7 If appli equals zero (0), Adonix considers that the file is in the current application.<\/p>\n<p>\u00b7 If the volume is not specified, Adonix considers that it is the one where the application described by appli is installed.<\/p>\n<p>\u00b7 If mach is given, then this machine is taken into account.<br \/>\n\u00b7 If mach equals &#8220;&#8221;, then this is the machine where the application (server) that is taken into account is installed.<br \/>\n\u00b7 If mach equals the pound sign (#), then this local machine (client) is taken into account.<\/p>\n<p>The result of the filcom function is of the Char type.<\/p>\n<p>Hope this helps.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>About Us<\/strong><\/p>\n<p>Greytrix is one stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.<\/p>\n<p><a href=\"http:\/\/www.greytrix.com\/\">Greytrix<\/a>\u00a0have some unique solutions of\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-crm\/gumu-sage-x3-integration\">Sage X3 integration with Sage CRM<\/a>,\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\">Salesforce.com<\/a>\u00a0and\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/magento-sage-integrations\/sage-x3-magento\">Magento eCommerce<\/a> along with Sage X3 migration from Sage 50 US, Sage Pro and QuickBooks. \u00a0We also offer best-in-class\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\">Sage X3 customization and development services<\/a>\u00a0to Sage business partners, end users, and Sage PSG worldwide.<\/p>\n<p>For more information on Sage X3 Integration and Services, please contact us at\u00a0<a href=\"mailto:x3@greytrix.com\">x3@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may have come across a situation where you want to returnreturns the comment defined in the header of the file for which the path is created with the various parameters passed. Syntax: filcom(directory, filnam, extens [, appli [,vol [,mach]]]) Example: If the CLIENT table exists in the current application or in one of its\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2017\/12\/01\/how-to-get-the-comment-defined-in-the-header-of-an-object-defined-in-an-adonix-application\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11172","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/11172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=11172"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/11172\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=11172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=11172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=11172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}