機能タイプ(E){ テキストせ = '' スイッチ(E)を{ 場合 'アプリケーション/ mswordは' : テキスト = 'の.doc'; 休憩; ケース 'アプリケーション/ vnd.openxmlformats-officedocument.wordprocessingml.document' : テキスト = '.docxの'; 休憩; ケース 'アプリケーション/ vnd.openxmlformats-officedocument.wordprocessingml.template' : テキスト = '.dotx'; 休憩; ケース 'アプリケーション/ vnd.ms-word.document.macroEnabled.12' := '.docm'; 休憩; ケース 'アプリケーション/ vnd.ms-word.template.macroEnabled.12' : テキスト = '.dotm'; 休憩; ケース 'アプリケーション/ vnd.ms-エクセル' : テキスト =」の.xls'; 休憩; ケース 'アプリケーション/ vnd.openxmlformats-officedocument.spreadsheetml.sheet' : テキスト = 'の.xlsx'; 休憩; ケース 'アプリケーション/ vnd.openxmlformats-officedocument.spreadsheetml.template' : テキスト = '.xltx'; 休憩; 'アプリケーション/ vnd.ms-excel.sheet.macroEnabled.12' : テキスト = '.xlsm'; 休憩; ケース 'アプリケーション/ vnd.ms-excel.template.macroEnabled.12' : テキスト = '.xltm'; 休憩; ケース 'アプリケーション/ vnd.ms-excel.addin.macroEnabled.12' : テキスト = '.xlam'; 休憩; ケース 'アプリケーション/ vnd.ms-excel.sheet.binary.macroEnabled.12' : テキスト = '.xlsb'; 休憩; ケース 'アプリケーション/ vnd.ms-パワーポイント' := '.pptの'; 休憩; ケース 'アプリケーション/ vnd.openxmlformats-officedocument.presentationml.presentation' : テキスト = '.PPTX'; 休憩; ケース 'アプリケーション/ vnd.openxmlformats-officedocument.presentationml.template' : テキスト = '.potx'; 休憩; ケース 'アプリケーション/ vnd.openxmlformats-officedocument.presentationml.slideshow' : テキスト = '.ppsx'; 休憩; ケース 'アプリケーション/ vnd.ms-powerpoint.addin.macroEnabled.12' :休憩; ケース 'アプリケーション/ vnd.ms-powerpoint.presentation.macroEnabled.12' : テキスト = '.pptm'; 休憩; ケース 'アプリケーション/ vnd.ms-powerpoint.presentation.macroEnabled.12' : テキスト = '.potm'; 休憩; ケース 'アプリケーション/ vnd.ms-powerpoint.slideshow.macroEnabled.12' : テキスト = '.ppsm'; 休憩; ケース '/ JPEG画像' : テキスト = '.JPEG'。休憩; ケース " テキスト = '.icon'; 休憩; 場合 '画像/ PNG' : テキスト = 'の.png'。休憩; 場合 '画像/ GIF' : テキスト = '.GIF'; 休憩; } 戻りテキスト。 }