GUIから変更できないので、一旦Eclipseを終了し、以下のディレクトリを削除。
再度Eclipseを起動し、SVNサーバに接続しようとすると、ユーザIDとパスワードを再度聞かれる。
C:\Users\ユーザ名\AppData\Roaming\Subversion\auth\svn.simple
※この例はWindows7なのでOSにより場所は多少異なる
2013/02/05
2012/11/13
2012/11/01
2012/10/10
VBAにおけるファイルアクセスについて
Dim intFileNo as Integer
Dim strBuffer as String
Dim intRows as Integer
'' ファイル番号を取得
intFileNo = FreeFile
'' ファイルオープン
Open "ファイルパス" For Input As #intFileNo
'' ファイルのEOF(End of File)まで繰り返す
Do Until EOF(intFileNo)
'' 1行読み込み
Line Input #intFileNo, strBuffer
''行を加算
intRows = intRows + 1
'' A列にレコード内容を表示
Cells(intRows, 1).Value = strBuffer
Loop
'' ファイルクローズ
Close #intFileNo
2012/10/06
JavaScriptによるselectボックスの作成について
JavaScriptを用いて、selectボックスを動的に作成するサンプル
(参考:http://blog.gridworlds.com/js/how-to-create-optgroups-in-javascript)
1.オプショングループの作成
2.オプションの作成
3.選択済み項目の設定(必要に応じて)
4.selectボックスクリア
5.オプショングループ追加
(参考:http://blog.gridworlds.com/js/how-to-create-optgroups-in-javascript)
// オブジェクト作成
var asagohan = document.createElement("optgroup");
// ラベルの設定
asagohan.label = "朝ごはん";
var asagohan = document.createElement("optgroup");
// ラベルの設定
asagohan.label = "朝ごはん";
2.オプションの作成
// オブジェクト作成
var siriaru = document.createElement("option");
// value値の設定
siriaru.value = "siriaru";
// 画面上に表示される選択文字列の設定
siriaru.appendChild(document.createTextNode("シリアル"));
// オプショングループに追加
asagohan.appendChild(siriaru);
var siriaru = document.createElement("option");
// value値の設定
siriaru.value = "siriaru";
// 画面上に表示される選択文字列の設定
siriaru.appendChild(document.createTextNode("シリアル"));
// オプショングループに追加
asagohan.appendChild(siriaru);
3.選択済み項目の設定(必要に応じて)
siriaru.selected = true;
4.selectボックスクリア
// selectボックスを取得
var selectMenu = document.getElementById("foodOptions");
// 子要素がある分だけ除去
while (selectMenu.hasChildNodes()) {
selectMenu.removeChild(selectMenu.firstChild);
}
var selectMenu = document.getElementById("foodOptions");
// 子要素がある分だけ除去
while (selectMenu.hasChildNodes()) {
selectMenu.removeChild(selectMenu.firstChild);
}
5.オプショングループ追加
// 子要素を保持しているオプショングループオブジェクトをselectボックスに追加
if (asagohan.hasChildNodes()) { selectMenu.appendChild(asagohan); }
if (lunch.hasChildNodes()) { selectMenu.appendChild(lunch); }
if (dinner.hasChildNodes()) { selectMenu.appendChild(dinner); }
if (asagohan.hasChildNodes()) { selectMenu.appendChild(asagohan); }
if (lunch.hasChildNodes()) { selectMenu.appendChild(lunch); }
if (dinner.hasChildNodes()) { selectMenu.appendChild(dinner); }
2012/10/02
登録:
投稿 (Atom)