プロパティのStyleをfmStyleDropDownListにする
ExcelVBAでExcel終了
'確認メッセージを表示させない Application.DisplayAlerts = False '保存 ActiveWorkbook.Save 'Excelを終了する Application.Quit
ExcelVBAでタブオーダーの設定方法
フォームのエディタで
メニュー>表示からタブオーダー選ぶだけ
ExcelVBAでフォルダ選択ダイアログ
With Application.FileDialog(msoFileDialogFolderPicker) .InitialFileName = "c:\" '初期フォルダ If .Show = True Then MsgBox = .SelectedItems(1) End If End With
OutputDebugStringに書式指定版を作る
ヘッダで以下を定義
#ifdef OutputDebugString #undef OutputDebugString #endif #ifdef UNICODE #define OutputDebugString OutputDebugStringFW #define OutputDebugStringV OutputDebugStringFVW #else #define OutputDebugString OutputDebugStringFA #define OutputDebugStringV OutputDebugStringFVA #endif // !UNICODE void OutputDebugStringFA(const char *format, ...); void OutputDebugStringFW(const wchar_t *format, ...);
どこかのcppコードに以下を実装
void OutputDebugStringFVA(const char *format, va_list args) { int len = _vscprintf(format, args) + 1; char * buffer = new char[len]; vsprintf_s(buffer, len, format, args); OutputDebugStringA(buffer); delete[] buffer; } void OutputDebugStringFVW(const wchar_t *format, va_list args) { int len = _vscwprintf(format, args) + 1; wchar_t * buffer = new wchar_t[len]; vswprintf_s(buffer, len, format, args); OutputDebugStringW(buffer); delete[] buffer; } void OutputDebugStringFA(const char *format, ...) { va_list args; va_start(args, format); OutputDebugStringFVA(format, args); va_end(args); } void OutputDebugStringFW(const wchar_t *format, ...) { va_list args; va_start(args, format); OutputDebugStringFVW(format, args); va_end(args); }
C#でTickカウント取得
Environment.TickCount
wordpressで固定ページで使うテンプレートを作成する
/wp-content/themes/テーマのフォルダ
に名前は自由にphpファイルをつくって
その中身は先頭に
<?php /* Template Name: テンプレートの名前 */ ?>
を記述しておく。
あとは自由。
<head>
だけ特別なページを作りたい場合は、
page.phpをコピーして↑のようにテンプレートとして作成。
続いてheader.phpをコピーしてheader-hogehoge.phpといった名前に変更。
page.phpをコピーして作ったphpの中で
<?php get_header(); ?>
があるので
<?php get_header('hogehoge'); ?>
とすると
header-hogehoge.phpが読み込まれたテンプレートになる。
ネタ元
- https://wpdocs.osdn.jp/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9/get_header#.E3.83.91.E3.83.A9.E3.83.A1.E3.83.BC.E3.82.BF
- https://wordpressmatome.com/%E5%90%84%E5%9B%BA%E5%AE%9A%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%E3%83%87%E3%82%B6%E3%82%A4%E3%83%B3%E3%82%92%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%E9%81%B8/
Perlでmyとlocalの違い
ローカルにしたけりゃmy使え。
PerlのCGIテスト時の定番
これいれないでprintするとエラーになるよ
print "Content-type: text/html\n\n\n";
C#単語の先頭文字を大文字に変換する
stinrg text = "open"; text = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(text);