Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : vb

[TestComplete ϵÁÐ]VB¼ì²é±àÂëÀàÐÍ

Sub CheckTextCodingType(Textfile)
Set fl = aqFile.OpenBinaryFile(Textfile, aqFile.faRead)
Binary1 = fl.ReadByte()
Binary2 = fl.ReadByte()
fl.Close
select case CStr(Binary1)& CStr(Binary2)
case 255254: '*Unicode (UTF-16) Ç°Á½¸ö×Ö½ÚΪFFFE
Log.Message("file is ctUnicode type")
TextCodingType = 21
case 239187: '*UTF8 Ç°Á½×Ö½ÚΪEFBB
Log.Message("file is ctUTF8 type")
TextCodingType = 22
case else
Log.Message("file will open via ANSI type")
TextCodingType = 20
end select
End Sub ......

VBÓëWindows API ¼äµÄºô½Ð¼¼ÇÉ

 Ò»°ã»áʹÓÃWINDOW APIµÄÇé¿ö£¬ÊµÔÚÊÇÒòΪVB±¾Éí²»ÌṩijЩ¹¦ÄÜ£¬µ«ÊÇ£¬³ÌʽËù
ÐèÓÖ²»µÃ²»È»£¬ÀýÈ磺¶ÁÈ¡RegistryÄÚµÄ×Ê
ÁÏ£¬VBÖ»ÌṩSaveSetting¡¢Getsetting µÈ
ϵÁеÄÖ¸Áµ«ÊÇËüÖ»ÄܶÁÈ¡Ìض¨µØÇøµÄÖµ£¬Òª¶Á¡¢É¾¡¢¸ü¶¯ÆäËûÇøÓòµÄֵʱ£¬¾ÍÎÞ
·¨
ʹÓá£ÔÙÈ磺×Ðϸ¿´Ò»¿´Combo BoxµÄEvents£¬ÆäÖÐûÓÐMouseMove£¬µ«ÕâÊÇÎÒÃǾ­³£ÓÃ
ÉϵÄÒ»¸öEvent£¬ÄǸÃÈç
ºÎÄØ£¿Êǵģ¬ÄÇÖ»ÓÐ͸¹ýWinodow API¡£¶øVBºô½ÐWindow APIÒ»
°ã²»¶¼Ê¹ÓÃAPI¼ìÊÓÔ±£¬Ö±½Ó½«Ïà¶ÔÓ¦µÄAPI  COPYµ½
ÎÒÃǵijÌʽÖоͺã¬ÄÇ»¹ÓÃʲ÷á¼¼
ÇÉÂð£¿Æäʵ²»È»£¬ÒòΪVB×ÊÁϸñʽµÄÎÊÌ⣬ÓÖ¼ÓÉÏVB±¾ÉíûÓÐÖ¸±ê£¬ÔÚÐí¶àµØ·½ÐèÒªÒ»
ЩС¼¼ÇɲÅÄܽâ¾ö£¬
¶øÇÒÎÒÃǾ­³£ÒòÓ¦²»Í¬µÄÐèÇ󣬽«API ¼ìÊÓÔ±µÄÐû¸æCOPY¹ýÀ´ááÔÙ
×öһЩÐ޸ģ¬×îÖØÒªµÄ£¬Èç¹ûÓÐÒ»¸ö.DLLµµ£¬Ëü²»ÔÚAPI ¼ìÊÓÔ±Öж¨
Ò壬ÄÇʱ£¬¾ÍÖ»ÓÐ
×Ô¼ºÏë°ì·¨À²¡£
Ò»¡¢ ÕûÊý²ÎÊý
Windows                          API32
λԪVB
========================= ......

º§ÈËÌýÎÅ,VBÓöµ½ÕâÏÖÏó,´ó¼ÒСÐÄÍÛ~

YXOnlineÒѾ­½Ó½üβÉù,ΪÁË´¦ÀíһЩ½çÃæµÄÎÊÌâ,²âÊÔÒ»¸öC++µÄDLL
Ò»¸öº¯Êý,ÓÃdeasambling¿´C++µÄ´úÂëÊÇûÓдíÎóµÄ,µ«Êǵ½ÁËVB,Çë¿´
bµÄ·µ»ØÖµÊÇTrue ²»¹ÜC++ºÍVBÏ໥¼üÔ¼¶¨TrueºÍFalse¸÷¶ÔӦΪʲôÊýÖµ
ÕâÀïÒѾ­ÊÇTrueÁË
µ«ÄÇʱÏÔʾTrue = True ÈԾɲ»Ö´ÐеÚÒ»¸öMsgbox
Ö±½ÓÌøµ½Else
¶øÈç¹ûÊ¡ÂÔb = True Ϊ If b Then ÔòÕý³£Í¨¹ý
ÕâÊÇVB6µÚ¶þ¸ö¹ÖÊÂ
ÔÙF8һϾÍÖ´ÐÐ
°¡Å¶
ѾѾ¸öÅÞ!
Who the hell Microsoft think they are? ......

VB ÃæÏò¶ÔÏó

Õ⼸ÌìÒ»Ö±ÔÚ×öÒ»¸öСµÄ¹¤³Ì,×öÒ»¸öÎı¾ÔĶÁÆ÷,ÏÖÔÚ×öµÄÒѾ­ÓÐÈý·ÖÖ®¶þÁË,´ÓÖÐѧϰµ½Á˺ܶà,¶ÔÎÒÃÇÒÔǰѧϰµÄ³É¹ûÓÐÁ˸üÉî¿ÌµÄÀí½â.
VBÊÇÒ»ÃÅÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼Æ,ÎҾʹÓÃæÐÔ¶ÔÏóµÄ½Ç¶È¶ÔËû×öÒ»´Î×ܽá
°ÑVBÖÐËùÓеÄÊý¾Ý,±äÁ¿,¿Ø¼þ¶¼¿´×öÒ»¸ö¶ÔÏó
ÎÒÃÇËùÓеIJÙ×÷¶¼ÊǶԶÔÏóµÄ²Ù×÷,ÈöÔÏóÈ¥Ö´ÐÐijһ¸ö¹¦ÄÜ
´ó¼ÒÏÈ¿´Ò»¸öÀý×Ó
***********************************************************
Dim form as form
For form in forms
Load form
Next form
 
Dim I as integer
For i=1 to n
      Print i
Next i
***********************************************************
ÕâÊÇÒ»¸öºÜÓÐȤµÄ¶Ô±È,Ëû¸æËßÎÒÃÇ,vbÖÐËùÓеÄÀà,±äÁ¿,ËûÃǵı¾ÖÊÊÇÒ»ÑùµÄ,ÄÇЩ±äÁ¿Ö»ÊÇûÓи³ÓèËûÃÇÌض¨µÄ¹¦ÄÜ.
ÄÇôÊÇʲôÔì³ÉËûÃÇÁ½¸öÖ®¼äµÄÇø±ðÄØ?
µÚÒ»: ÔËËã·û::
ÔËËã·û°ÑÒ»¸ö¸ö¹ÂÁ¢µÄ±äÁ¿ÁªÏµÔÚÒ»Æð,ÕâÑùµÄ,ÈÃËûÃÇ×é³É±í´ïʽ,,¾ä×Ó.±ÈÈç:
ËãÊõ
×Ö·û´®
¹Øϵ:
Âß¼­:
a+b
ºÃºÃ” & “ѧϰ”
a<b
A and B
µÚ¶þ: ¿ØÖƽṹ:
Èý´ó¿ØÖƽṹÓÖÈÃÒ»¸ö¸ö¹ÂÁ¢µÄ±í´ïʽ±ä³ÉÁ˺¯Êý,¹ý³Ì
µ«Êǵ±ÎÒÃǺܶà´ÎÖظ´µÄÔËÓÃÒ»¸öº¯Êýʱ,ΪÁ ......

VBÖи÷ÖÖÊý¾ÝÀàÐÍת»»º¯Êý

1. ¸÷ÖÖ½øÖÆת»»º¯Êý Ò»°ãµÄÊý¾Ý½øÖÆ°üÀ¨Ê®½øÖÆ,¶þ½øÖÆ,Ê®Áù½øÖÆ.Ê®½øÖƾÍÊÇÎÒÃÇÈÕ³£Éú»îÓõ½µÄÊý¾Ý½øÖÆ,Òò´ËÒ²ÊÇÎÒÃÇ×îÊìϤºÍÇå³þµÄ;¶þ½øÖÆÊǼÆËã»úµÄ»ù´¡½øÖÆ,Ö÷ÒªÊÇÒòΪ±ãÓÚÓÃÎïÀíÆ÷¼þʵÏÖ¶þ½øÖÆ;°Ë½øÖƺÍÊ®Áù½øÖÆÒòΪºÍ¶þ½øÖƵÄÌìÈ»µÄÇ×ÃܹØϵ,²¢ÇÒ±íʾ±È¶þ½øÖƸü·½±ã,
¡¡¡¡1.
 ¸÷ÖÖ½øÖÆת»»º¯Êý
¡¡¡¡Ò»°ãµÄÊý¾Ý½øÖÆ°üÀ¨Ê®½øÖÆ,¶þ½øÖÆ,Ê®Áù½øÖÆ.Ê®½øÖƾÍÊÇÎÒÃÇÈÕ³£Éú»îÓõ½µÄÊý¾Ý½øÖÆ,Òò´ËÒ²ÊÇÎÒÃÇ×îÊìϤºÍÇå³þµÄ;¶þ½øÖÆÊǼÆËã»úµÄ»ù´¡½øÖÆ,Ö÷ÒªÊÇÒòΪ±ãÓÚÓÃÎïÀíÆ÷¼þʵÏÖ¶þ½øÖÆ;°Ë½øÖƺÍÊ®Áù½øÖÆÒòΪºÍ¶þ½øÖƵÄÌìÈ»µÄÇ×ÃܹØϵ,²¢ÇÒ±íʾ±È¶þ½øÖƸü·½±ã,Òò¶øÒ²³ÉΪ¼ÆËã»úµÄ³£Óñíʾ·½·¨.
¡¡¡¡VBÖÐÉæ¼°µ½µÄÊý¾Ý½øÖÆÖ®¼äµÄת»»º¯ÊýÖ÷ÒªÓÐÈçϼ¸¸ö:
¡¡¡¡Hex º¯Êý: ·µ»Ø´ú±íÊ®Áù½øÖÆÊýÖµµÄ String;
¡¡¡¡Oct º¯Êý: ·µ»Ø´ú±íÒ»ÊýÖµµÄ°Ë½øÖÆÖµµÄVariant (String);
¡¡¡¡Cintº¯Êý: Ç¿Öƽ«Ò»¸ö±í´ïʽת»»³É-32,768 ÖÁ 32,767µÄÕûÐÍ;
¡¡¡¡CLngº¯Êý: Ç¿Öƽ«Ò»¸ö±í´ïʽת»»³É-2,147,483,648 ÖÁ 2,147,483,647µÄ³¤ÕûÐÍ;
¡¡¡¡Cdecº¯Êý: Ç¿Öƽ«Ò»¸ö±í´ïʽת»»³ÉDecimal Êý¾ÝÀàÐÍ;
¡¡¡¡CDbl ......

VBÖÐʵÏÖµØͼ²Ù×÷µÄ·½·¨

1.       ÔÚVBµÄFormÉè¼Æʱ£¬¼ÓÈëÒ»¸öpicturebox¿Ø¼þ£¬Õâ¸ö¿Ø¼þ×÷ΪOLEÈÝÆ÷£¬MapInfoÖеĵØͼ½«ÔڸÿؼþÉÏÏÔʾ¡£
2.       Ö´ÐÐVBµÄº¯ÊýCreateobject(“MapInfo.Application”),Æô¶¯MapInfo¡£ÕâʱMapInfoÔÚºǫ́Æô¶¯£¬¶ÔÓû§À´Ëµ²»¿É¼û£¬²»»áµ¯³ösplash´°¿Ú
3.       µ÷ÓÃMapBasicµÄº¯ÊýSet Application Window£¬ÉèÖÃMapInfoµÄ¸¸´°ÌåID£¬Ò²¾ÍÊÇVB´°ÌåµÄID£¬ÒÔºóµÄMapInfo¶Ô»°¿ò¶¼°ÑVB´°Ìå×÷Ϊ¸¸´°Ìå¡£
4.       Éú³ÉÒ»¸öOLE×Ô¶¯»¯»Øµ÷¶ÔÏó£¬ÓÃÀ´´¦ÀíMapInfoµÄ»Øµ÷ÐÅÏ¢¡£È»ºóµ÷ÓÃMapBasicµÄº¯ÊýSetCallbackÀ´Ö¸ÏòÕâ¸ö»Øµ÷¶ÔÏó¡£
5.       µ÷ÓÃMapBasicµÄº¯ÊýOpen TableÀ´´ò¿ªËùÒª´ò¿ªµÄ±í£¬Õâ¸öʱºò½ö½öÊÇ´ò¿ªÊý¾Ý¿âÎļþ¶øÒÑ£¬Í¼²ã²¢²»¿É¼û¡£
6.       µ÷ÓÃMapBasicµÄº¯ÊýMap fromÉú³É¿É¼ûµÄµØͼ£¬µØͼÏÔʾÔÚpictureboxÄÚ¡£
7.       µ÷ÓÃMapBasicµÄº¯ÊýSet Next Document Parent£¬ÖØж¨ÏòMapInfoÎĵµ´°¿ÚµÄ¸¸´°Ì壬ÕâÑùµØͼ´°¿Ú¾Í³ÉÎ ......
×ܼǼÊý:380; ×ÜÒ³Êý:64; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [7] [8] [9] [10] 11 [12] [13] [14] [15] [16]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ