{"id":2585,"date":"2020-10-10T11:56:57","date_gmt":"2020-10-10T08:56:57","guid":{"rendered":"https:\/\/www.about1c.ru\/v77\/?p=2585"},"modified":"2023-05-06T20:46:14","modified_gmt":"2023-05-06T17:46:14","slug":"method-set-type","status":"publish","type":"post","link":"https:\/\/www.about1c.ru\/v77\/language-reference\/complex-data-types\/reference\/method-set-type","title":{"rendered":"\u0421\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a<br\/>\u041c\u0435\u0442\u043e\u0434 \u041d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c\u0422\u0438\u043f()"},"content":{"rendered":"<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0442\u0438\u043f \u0434\u043b\u044f \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430.<br \/>\n<!--more--><\/p>\n<h2>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441<\/h2>\n<p>\u041c\u0435\u0442\u043e\u0434 <code>\u041d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c\u0422\u0438\u043f()<\/code>\u00a0\u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:<\/p>\n<pre class=\"syntax\">\u041d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c\u0422\u0438\u043f(\u0418\u043c\u044f\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430, \u0418\u043c\u044f\u0422\u0438\u043f\u0430, [\u0414\u043b\u0438\u043d\u0430], [\u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c])<\/pre>\n<p>\u0410 \u0442\u0430\u043a\u0436\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:<\/p>\n<pre>SetType(FieldName, TypeName, [Length], [Precision])<\/pre>\n<h2>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/h2>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 <code>\u041d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c\u0422\u0438\u043f()<\/code>:<\/p>\n<table class=\"wright\">\n<tbody>\n<tr>\n<th>\u0418\u043c\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430<\/th>\n<th>\u0422\u0438\u043f<\/th>\n<th>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/th>\n<\/tr>\n<tr>\n<td><strong>\u0418\u043c\u044f\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430<\/strong><\/td>\n<td>\u0421\u0442\u0440\u043e\u043a\u0430<\/td>\n<td>\u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430, \u043a\u0430\u043a \u043e\u043d \u0437\u0430\u0434\u0430\u043d \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0442\u043e\u0440\u0435.<\/td>\n<\/tr>\n<tr>\n<td><strong>\u0418\u043c\u044f\u0422\u0438\u043f\u0430<\/strong><\/td>\n<td>\u0421\u0442\u0440\u043e\u043a\u0430<\/td>\n<td>\u0438\u043c\u044f \u0442\u0438\u043f\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0443. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<br \/>\n<code>\u0421\u0442\u0440\u043e\u043a\u0430<\/code>,<code>\u0427\u0438\u0441\u043b\u043e<\/code>,<br \/>\n<code>\u0421\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a.\u0422\u043e\u0432\u0430\u0440\u044b<\/code>,<br \/>\n<code>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442.\u041f\u0440\u0438\u0445\u043e\u0434\u043d\u0430\u044f\u041d\u0430\u043a\u043b\u0430\u0434\u043d\u0430\u044f<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u0414\u043b\u0438\u043d\u0430<\/td>\n<td>\u0427\u0438\u0441\u043b\u043e<\/td>\n<td>\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0433\u043e \u0438\u043b\u0438 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0433\u043e \u0442\u0438\u043f\u0430<\/td>\n<\/tr>\n<tr>\n<td>\u0422\u043e\u0447\u043d\u043e\u0441\u0442\u044c<\/td>\n<td>\u0427\u0438\u0441\u043b\u043e<\/td>\n<td>\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u0430\u044f \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0433\u043e \u0442\u0438\u043f\u0430<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\"><strong>\u0416\u0438\u0440\u043d\u044b\u043c \u0448\u0440\u0438\u0444\u0442\u043e\u043c<\/strong> \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u044b \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/h2>\n<p style=\"text-align: justify;\">\u041c\u0435\u0442\u043e\u0434 <code>\u041d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c\u0422\u0438\u043f()<\/code> \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0442\u0438\u043f \u0434\u043b\u044f \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430. \u0422\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430 (\u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043f\u043e\u043b\u0435 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u044b\u043c)<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2586\" src=\"https:\/\/www.about1c.ru\/v77\/wp-content\/uploads\/sites\/2\/2020\/10\/p140.png\" alt=\"\u0420\u0435\u043a\u0432\u0438\u0437\u0438\u0442 \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0432 1\u0441 7.7\" width=\"682\" height=\"430\" srcset=\"https:\/\/www.about1c.ru\/v77\/wp-content\/uploads\/sites\/2\/2020\/10\/p140.png 682w, https:\/\/www.about1c.ru\/v77\/wp-content\/uploads\/sites\/2\/2020\/10\/p140-300x189.png 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/p>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h2>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043c\u0435\u0442\u043e\u0434\u0430 <code>\u041d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c\u0422\u0438\u043f()<\/code>:<\/p>\n<pre class=\"code\">\u0422\u043e\u0432\u0430\u0440 <span style=\"color: red;\">=<\/span> <span style=\"color: red;\">\u0421\u043e\u0437\u0434\u0430\u0442\u044c\u041e\u0431\u044a\u0435\u043a\u0442<\/span><span style=\"color: red;\">(<\/span><span style=\"color: black;\">\"\u0421\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a.\u0422\u043e\u0432\u0430\u0440\u044b\"<\/span><span style=\"color: red;\">)<\/span><span style=\"color: red;\">;<\/span>\r\n<span style=\"color: green;\">\/\/\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430<\/span>\r\n\u0422\u043e\u0432\u0430\u0440<span style=\"color: red;\">.<\/span>\u041d\u043e\u0432\u044b\u0439<span style=\"color: red;\">()<\/span><span style=\"color: red;\">;<\/span>\r\n\r\n<span style=\"color: green;\">\/\/\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e:<\/span>\r\n\u0422\u043e\u0432\u0430\u0440<span style=\"color: red;\">.<\/span>\u0414\u043e\u043f\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <span style=\"color: red;\">=<\/span> <span style=\"color: black;\">1<\/span><span style=\"color: red;\">;<\/span>\r\n<span style=\"color: red;\">\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c<\/span><span style=\"color: red;\">(<\/span>\u0422\u043e\u0432\u0430\u0440<span style=\"color: red;\">.<\/span>\u0414\u043e\u043f\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<span style=\"color: red;\">)<\/span><span style=\"color: red;\">;<\/span>\r\n<span style=\"color: green;\">\/\/\u0440\u0443\u0437\u043b\u044c\u0442\u0430\u0442:<\/span>\r\n<span style=\"color: green;\">\/\/ &lt;&gt;<\/span>\r\n\r\n<span style=\"color: green;\">\/\/\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e:<\/span>\r\n\u0422\u043e\u0432\u0430\u0440<span style=\"color: red;\">.<\/span>\u041d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c\u0422\u0438\u043f<span style=\"color: red;\">(<\/span><span style=\"color: black;\">\"\u0414\u043e\u043f\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435\"<\/span><span style=\"color: red;\">,<\/span> <span style=\"color: black;\">\"\u0427\u0438\u0441\u043b\u043e\"<\/span><span style=\"color: red;\">,<\/span> <span style=\"color: black;\">1<\/span><span style=\"color: red;\">)<\/span><span style=\"color: red;\">;<\/span>\r\n\u0422\u043e\u0432\u0430\u0440<span style=\"color: red;\">.<\/span>\u0414\u043e\u043f\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <span style=\"color: red;\">=<\/span> <span style=\"color: black;\">1<\/span><span style=\"color: red;\">;<\/span>\r\n<span style=\"color: red;\">\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c<\/span><span style=\"color: red;\">(<\/span>\u0422\u043e\u0432\u0430\u0440<span style=\"color: red;\">.<\/span>\u0414\u043e\u043f\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<span style=\"color: red;\">)<\/span><span style=\"color: red;\">;<\/span>\r\n<span style=\"color: green;\">\/\/\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/span>\r\n<span style=\"color: green;\">\/\/ 1<\/span>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0442\u0438\u043f \u0434\u043b\u044f \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-2585","post","type-post","status-publish","format-standard","hentry","category-reference"],"_links":{"self":[{"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/posts\/2585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/comments?post=2585"}],"version-history":[{"count":4,"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/posts\/2585\/revisions"}],"predecessor-version":[{"id":2771,"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/posts\/2585\/revisions\/2771"}],"wp:attachment":[{"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/media?parent=2585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/categories?post=2585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.about1c.ru\/v77\/wp-json\/wp\/v2\/tags?post=2585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}