VB ¼òµ¥¼ÆËãÆ÷
Option Explicit
Dim potflag As Integer '±êʶÊÇ·ñÓÃСÊýµã
Dim numcol As Integer ' µã»÷ÔËËã·ûµÄ¸öÊý
Dim LastInput ' ָʾÉÏÒ»´Î²Ù×÷µÄÄÚÈÝ
Dim colflag 'numcolΪ1ʱ£¬±£´æÔËËã·û
Dim temp1, temp2 '·Ö±ð±£´æÔËËã·ûÁ½¶ËµÄÔËËãÊý
Private Sub CmdCel_Click() 'ÖØÐ¿ªÊ¼¼ÆËã°´Å¥£¬¸ö¼ÆÁ¿ÊýºÍ±êʶ³õʼ»¯
Res = Format(0, "0.")
temp1 = 0
temp2 = 0
numcol = 0
potflag = False
LastInput = "cel" '±êʶ´Ë²Ù×÷Ϊ"cel"
End Sub
Private Sub CmdPot_Click() 'ʹÓÃСÊýµã
If LastInput <> "num" Then
Res = Format(0, "0.")
ElseIf String(1, Res) = "-" Then
Res = Format(0, "-0.")
End If
potflag = True
LastInput = "num" '±êʶ´Ë²Ù×÷Ϊ"num"
End Sub
Private Sub Cmdsign_Click() 'ʹÓÃÕý¸ººÅ
If String(1, Res) <> "-" Then 'Èç¹ûµ±Ç°ÊÇÕýÊýÌí¼Ó¸ººÅ
Res = "-" & Res
Else: Res = Right(Res, Len(Res) - 1) 'Èç¹ûµ±Ç°ÊÇÖ¤ºÅ£¬È¡Ïû¸ººÅ
End If
LastInput = "num" '±êʶ´Ë²Ù×÷Ϊ"num"
End Sub
Private Sub ComCol_Click(Index As Integer) 'µã»÷²Ù×÷·û£¬¿É½øÐÐÁ¬ÐøÔËËã
numcol = numcol + 1 'ͨ¹ýnumcol±êʶµã»÷ÔËËã·ûµÄ´ÎÊý
If numcol = 1 Then 'µ±Ç°ÊýΪ²Ù×÷·û×ó²àÔËËãÊýʱ£¬¼Ç¼µ±Ç°²Ù×÷Êý
temp1 = Res
&
Ïà¹ØÎĵµ£º
'*************************************************************************
**˵ Ã÷£ºÓÀÔ¶µÄħÁé by icecept(¹ùÎÀ£©
'**´´ ½¨ ÈË£ºicecept(ħÁé)
'**ÈÕ ÆÚ£º2009-11-15 20:27:03
'**ÐÞ ¸Ä ÈË£ºicecept(ħÁé)
'**°æ ±¾£ºV1.0.0
'**E-mail £ºicecept@163.com QQ£º543375508
'**Íø ......
http://tieba.baidu.com/f?kz=580219489
http://www.anqn.com/vb/154/8974.shtml
http://www.codefans.net/soft/5089.shtml
http://www.mndsoft.com/blog/article.asp?id=1121
http://topic.csdn.net/t/20020113/14/474848.html
Ö±½ÓÔËÐÐÍøÒ³ÖеÄJavaScript£º
function alllefttab()
WebBrowser1.Document.par ......
'´úÂë:
Option Explicit
'======================ÓÃÓÚ²éÕÒ½ø³ÌºÍÖÕÖ¹½ø³ÌµÄAPIº¯Êý³£Êý¶¨Òå================ =====
Private Declare Function CreateToolhelpSnapshot Lib "kernel32" Alias "CreateToolhelp32Snapshot" (ByVal lFlags As Long, ByVal lProcessID As Long) As Long
Private Declare Function ProcessF ......
¼üÅÌÊÇÎÒÃÇʹÓüÆËã»úµÄÒ»¸öºÜÖØÒªµÄÊäÈëÉ豸ÁË£¬¼´Ê¹ÔÚÊó±ê´óÐÐÆäµÀµÄ½ñÌ죬ºÜ¶à³ÌÐòÒÀÈ»Àë²»¿ª¼üÅÌÀ´²Ù×÷¡£µ«ÊÇÓÐʱºò£¬Ò»Ð©Öظ´ÐԵģ¬ºÜ·±ËöµÄ¼üÅ̲Ù×÷ ×Ü»áÈÃÈËÆ£±¹£¬ÓÚÊǾÍÓÐÁËÓóÌÐòÀ´´úÌæÈËÃǰ´¼üµÄ·½·¨£¬ÕâÑù¿ÉÒ԰ѺܶàÖØ¸´ÐԵļüÅ̲Ù×÷½»¸ø³ÌÐòÀ´Ä£Ä⣬ʡÁ˺ܶྫÁ¦£¬°´¼ü¾«Áé¾ÍÊÇÕâÑùµÄÒ»¸öÈí¼þ¡£ÄÇô ÎÒÃÇÔõÑù²Å ......
http://social.msdn.microsoft.com/Forums/zh-TW/232/thread/5b0e0eb7-9cd7-420a-9f56-e588154174ba
http://www.mndsoft.com/blog/article.asp?id=903
http://topic.csdn.net/t/20051015/14/4328396.html
¡¡¡¡VBÊdz£ÓõÄÓ¦ÓÃÈí¼þ¿ª·¢¹¤¾ßÖ®Ò»£¬ÓÉÓÚVBµÄ±¨±í¹¦ÄÜÓÐÏÞ£¬¶øÇÒÒ»µ«±¨±í¸ñʽ·¢Éú±ä»¯£¬¾ÍµÃÏàÓ¦Ð޸ijÌÐò£ ......