スキップしてメイン コンテンツに移動

VB4からVB6になったわいいけど…


色々あるもんですね。。。違い。

今回はCommandボタンのイベントハンドラ内でTextBoxの文字をクリア(””)した後、複雑な処理をするとクリアされないという現象が発覚…ヾ(--;)ぉぃぉぃ

テストプログラムでは、VB4もVB6も同じ動きをするのに…


Private Sub Command1_Click()
Dim i As Long
Dim j As Long
Text1.Text = ““ ←メッセージをクリアする
Form1.MousePointer = 11
For i = 1 To 100000000 ←ループ(プログラムに負荷のかかる処理をイベントハンドラ内で実行
j = j + 1
Next
Form1.MousePointer = 0
End Sub

これって、ループを抜けるまで、クリアされないのよね…

でも、実際のアプリでVB4では負荷のかかる処理の前にクリアされてVB6ではクリアされない。摩訶不思議。

どおなってんの?VB4?VB6か…

多分、負荷のかかる処理の前にやってる処理でDoEventsに相当するOSに制御が渡っているのだと思う…
ん~~~わかりません。

今日は寝ることにしよう…疲れたw

コメント

このブログの人気の投稿

MySQL NotifierがHigh Severity Errorを出して立ち上がらない…

先日、わしのPCがコンセントが抜けかけが原因で落ちて以来、MySQLのNotifierがエラーを出して立ち上がらなくなった… 1週間放置しておいたが、毎日エラーダイアログが表示されるのも目障りなので、対処してみた。 結果、 %APPDATA%\Oracle\MySQL Notifier にある settings.config が壊れていることが判り、削除し解決した。 なんでこんなものが壊れたのかは不明…

Sun Fire V120のディスクの消去

Sunの撤去が決まったので、ディスクの消去のために色々調べてた結果です ■USB光学ドライブからBoot出来るかの資料 Can I boot from a USB disk or USB CD/DVD drive? Generally speaking, booting from USB disk, CD/DVD drive is supported on x86 platforms with S10 update 1 and later if the BIOS has USB 2.0 support. Sparc systems with USB 2.0 support can boot from USB disks if the OBP(Open Boot Prom) is upgraded to version 4.27 or later. Before you can boot Solaris from USB disk, you have to install Solaris on the disk first. Installing on USB memory sticks is not recommended as the number of writes to these sticks is limited. Problems observed on some hardware platforms: -Installation from USB CD/DVD drive starts, but then fails with "not finding media" error. This is because the CD/DVD drive is not mounted under the /cdrom directory as the installation process expects. Possible workaround is to re-plug in the CD/DVD drive, and make sure the device is in the device tree and the /dev/dsk/ link is correctly created, and mount i...