{"id":829,"date":"2022-12-08T06:52:34","date_gmt":"2022-12-08T05:52:34","guid":{"rendered":"http:\/\/lesmrdtrucs.mataf35400.fr\/?page_id=829"},"modified":"2022-12-08T06:54:41","modified_gmt":"2022-12-08T05:54:41","slug":"fonction-parcourir-juste-pour-un-repertoire","status":"publish","type":"page","link":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/fonction-parcourir-juste-pour-un-repertoire\/","title":{"rendered":"Fonction Parcourir juste pour un r\u00e9pertoire"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"829\" class=\"elementor elementor-829\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-28b7db90 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"28b7db90\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2c90b595\" data-id=\"2c90b595\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6c1d894d elementor-widget elementor-widget-text-editor\" data-id=\"6c1d894d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>L&rsquo;utilisation du ComonDialogBox impose d&rsquo;aller jusqu&rsquo;au fichier.<br \/>Si l&rsquo;on ne veut descendre qu&rsquo;\u00e0 la maille du dossier, on peut utiliser la proc\u00e9dure suivante:<br \/><br \/><span style=\"color: #0000ff;\"><em>Private Sub Command1_Click()<\/em><\/span><br \/><span style=\"color: #0000ff;\"><em>\u00a0\u00a0 \u00a0Const WINDOW_HANDLE = 0<\/em><\/span><br \/><span style=\"color: #0000ff;\"><em>\u00a0\u00a0 \u00a0Const NO_OPTIONS = 0\u00a0\u00a0 \u00a0<\/em><\/span><br \/><br \/><span style=\"color: #0000ff;\"><em>\u00a0\u00a0 \u00a0Set objShell = CreateObject(\u00ab\u00a0Shell.Application\u00a0\u00bb)<\/em><\/span><br \/><span style=\"color: #0000ff;\"><em>\u00a0\u00a0 \u00a0Set objFolder = objShell.BrowseForFolder(WINDOW_HANDLE, \u00ab\u00a0Select a folder:\u00a0\u00bb, NO_OPTIONS,[RootFolder])<\/em><\/span><br \/><span style=\"color: #0000ff;\"><em>\u00a0\u00a0 \u00a0Set objFolderItem = objFolder.Self\u00a0\u00a0 \u00a0<\/em><\/span><br \/><br \/><span style=\"color: #0000ff;\"><em>\u00a0\u00a0 \u00a0Me.Caption = objFolderItem.Path<\/em><\/span><br \/><span style=\"color: #0000ff;\"><em>End Sub<\/em><\/span><br \/><br \/>Nota: [RootFolder] est le r\u00e9pertoire le plus haut auquel l&rsquo;utilisateur peut acc\u00e9der. Il est optionnel (repr\u00e9sent\u00e9 par des []).<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>L&rsquo;utilisation du ComonDialogBox impose d&rsquo;aller jusqu&rsquo;au fichier.Si l&rsquo;on ne veut descendre qu&rsquo;\u00e0 la maille du dossier, on peut utiliser la proc\u00e9dure suivante: Private Sub Command1_Click()\u00a0\u00a0 \u00a0Const WINDOW_HANDLE = 0\u00a0\u00a0 \u00a0Const NO_OPTIONS = 0\u00a0\u00a0 \u00a0 \u00a0\u00a0 \u00a0Set objShell = CreateObject(\u00ab\u00a0Shell.Application\u00a0\u00bb)\u00a0\u00a0 \u00a0Set objFolder = objShell.BrowseForFolder(WINDOW_HANDLE, \u00ab\u00a0Select a folder:\u00a0\u00bb, NO_OPTIONS,[RootFolder])\u00a0\u00a0 \u00a0Set objFolderItem = objFolder.Self\u00a0\u00a0 \u00a0 \u00a0\u00a0 \u00a0Me.Caption = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","footnotes":""},"class_list":["post-829","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages\/829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/comments?post=829"}],"version-history":[{"count":4,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages\/829\/revisions"}],"predecessor-version":[{"id":836,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages\/829\/revisions\/836"}],"wp:attachment":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/media?parent=829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}