1. Trang chủ
  2. » Công Nghệ Thông Tin

Các mẹo lập trình phần 1

20 401 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 20
Dung lượng 51,78 KB

Nội dung

Export và Import ra tập tin text từ Access (VB)  !"#$%&'() *'+$%%,-./$0/12/3415%66%736$ 16389:;<  =36>39?@<8AB C6=3 DE=36F>FGF>3?9< C=6H6>6I6=6 J1K61J J1HL6 J1=3HD=3H J1>F>3;66 J1?M1E J1?; J1?>6=36E J1!?=3E NH$DO?1 ?M1P=QRHN>1(666S1 >F>3P? EK61PCJ9?M1< N:K61 EHPK610CL69K61(C>< T=3H 0=1M1PM60 0=1M1PM1 0=1P 0=1KPK E>;6UVW X@>F>3> 0J1YPK9Z< 0J1GPK9Z< 0J1[PK9Z< = 0J1YPK9\\< 0J1GPK9\\< 0J1[PK9\\< =X@ 0KLI?P$KI@ =T ?P?? N> ?>6=36PKQR=3603 !?=3PJ9?>6=36< X@!?=3]^> _?>6=36 =X@ C?>6=36?6L61?IPI9=3H< D?((=3H J6`H0=C? T=3H 0=1M1PH9=1M6< 0=1M1PH9=1M1< 0=1PH9=1< 0=1KPH9=1K< =T D?((=3H H0A6$M3 I66 H0K6 EHPM6 K6? =3E I6=6Q A;63=6CQa=0J6((=6 =E  NX16>3$6AB DEX16F>3?FGF>9< C=6H6>6I6=6 J1K61J J1HL6 J1?M1E J1?; J1X16L6E J1@M1E J1L6OD66J6 J1=1M1E J1=1M1E J1=1E J1=1KE J1J1E @M1PKQR=3603 J1P( ?P?? C@M1?6X? IXb?(X16L6 ?M1PKQRH EK61PCJ9?M1< EHPK610CL69K61(CJ< J6`=C?9?< IXb?(X16L6 L6OD66PL6OD66cY =1M1P>19A9X16L6(Y(XE9Y(X16L6(J1(Y<BY<< =1M1P>19A9X16L6(d(Ye<< =1P>19A9X16L6(Yf([e<< =1KP>19A9X16L6(\Z<< H0MO H9=1M6<P=1M1 H9=1M1<P=1M1 H9=1<P=1 H9=1K<P=1K H0` I66 K6? H0K6 EHPM6 K610K6 EK61PM6 =3E I6=6Q A;63=6CQa=0J6((=6 =E Kỹ thuật Subclass Listbox trong Visualbasic ;$#g27!h6:;0;i76%j,- !!6:; T6O/%15kj4@61$66S:;%7662#$+ 5l%m(!6.$g(16%%,-V$n/%!0_h %73op /%,4!2%#%,-@61$660;k p/%$3oNN$NN,4!2%#%(2i7iU 9,q$g666o<0 E15!h$(r.15st9$,Q6'i!/j u%#$V6Sj<i7u%#$jS+# 16j6%5!/vj 91%<(p&:;+6O(1 610>i%n%7o%,-$V%nw!/*6$ni0 :1Y2ow!/V126S:;!,&%1%i @61Y/,x9V126<%7qj$'i0 EAT6OQ K2y%mq!hk1lY6z14$1Y16$6 6z96z{16{6<0;mx%|i?61Y$A6Y66z0 ;1lA6Y$6(%66$6Q DK6HTIFTMJDLCKP9B\< D6T6OD6I6 DJ?6ET6OI6INN[GNNNNET6OI6NN9F ;:OI6(F ;:X3I6(F ;:OMOI6I6<I6 }m151DXST6O6~%"5SY"966B8mx 26,66w15O6O<(6,x-S2%"1TD6 91T611O6O•%73o/%6j9%nT6O< %#<0 OB1ji!76•%73%+Y"9@61<Y669i76 i,'j3•%3%+VSY3$<0 X3B1jwi!76•%73%+NN.%"NN61 ET6OI6i9i71!'665AEJM<(6,x-S2X3i +HTIFTMJDLCK9$2.3o1TD61<0 OMOI6B1i!76•%7r%+rSS1412.3o0 1TD614'i1jj1jS1TD6+#0;w' 2o''/%1!/3o61TD61p%+3o0;# 6$%61|$6A6YQ D$J?6KT6OD6INN[GNNNNKT6OD6NN9F ;:D$T?I6(F ;:OI6(F ;:AI6(F ;:OD1I6(F ;:D1I6<I6 D?6MOT6OD69F ;:TI6(F ;:AI6(F ;:OD1I6(F ;:D1I6<I6 J0DNNaNNa39A<(OD1(D1 MOT6OD6PKT6OD696T6OD6(T(A(OD1(D1< =?6 KT6OD6•%7€1TD61p%+3o(1MOT6OD61#6 1TD601MOT6OD6!/1V$68$"J31/ %%,-%#6"9"+<01MOT6OD6%i€1 TD61p%+%73o/%Y,x9#6T6OD6•%7,%+r1 TD61p%+<0>1j1j61MOT6OD6QTBS"g /%•AB/%%,-•$G1jv9OD1$D1<1/S /%(5$6/%%,-0 ;mxi76z%,-(,,i3''("9@61<S,+ 0A5. 3y!/V1$626%78,&$w ,6z,4!0 }7q"9@61<S(6$6@61$6(%66$6Q D$E?61FI69< NEO6O 6T6OD6PET6OI69A0T(HTIFTMJDLCK(C@MOT6OD6< =E D$E?61F`69KX< N`96O6O6< ET6OI6A0T(HTIFTMJDLCK(6T6OD6 =E ;mx6!(@61S%|+‚;6z$31%n3'ƒK"J Sg /$n/%1j%|6@61S( 75(%"!,4@61000131091C@•%7V%+rSY1<0 6O6!616I63Q ;,4YQ_~6YI;63$YX166$6?61Y0 ;,4GQ>1Yj191<$6I639A6I;6366<0 ;,4[Q>1Y$6X1Y9g•1!66I;63<0 ;,4\QAlA6Y$%66$6Q D;H;I6 DJ?6KD;INN[GNN9F ;:;1I6<I6 DJ?6JCzINN[GNN9F ;:CzI6<I6 D$J?6E;!A6INN[GNN9F ;:I6(F ;:;!A6I6<I6 D$K6TAFK>IKCICLIXE>;C„PaY[\ K1•6$$gn6I;63(i731165AEJM0 ;,4…Q>%666?61FI6$?61F`62|k%6614,Q D$E?61FI69< X1Y0:P? ;H;PKD;9X1Y0D0< NEO6O 6T6OD6PET6OI69A0T(HTIFTMJDLCK(C@MOT6OD6< =E D$E?61F`69KX< N`96O6O6< ET6OI6A0T(HTIFTMJDLCK(6T6OD6 JCz;H; =E ;,4†Q:#1MOT6OD66A6Y%71$121j96$<0 D?6MOT6OD69F ;:TI6(F ;:AI6(F ;:OD1I6(F ;:D1I6<I6 J0DNNaNNa39A<(OD1(D1 X@APTAFK>IKCICLIXE>;C„;H;]^e> NA!O6 E;!A6OD1(Y N6O666366(0@61360 KT6OD66T6OD6(O(A(OD1(D1 NL6616@@6 MOT6OD6P;H; = MOT6OD6PKT6OD696T6OD6(T(A(OD1(D1< =X@ =?6 ;,4dQ‡‚;,6z$310 ;mxI;63S%|i!6'!/ƒ>61%,-,$ƒKi$%71. ,o,Q }nYQK2p/%TAFK>IKCICLIXE>;C„%73o0>/%%,-6 O6O9"1ˆ("V6&I;63<SI;63,4!j$g 630I2OD11+JK9$63<•%7$g63(D11+ S63.$g0:15%n$/•*€+'$nS1T6OD62( +g%,-j•%7$gn663(6%i6MOT6OD626 MOT6OD6NNrNN%#S;H;9MOT6OD6P;H;<$,4%i2%| 6;H;kQ;H;PKD;9X1Y0D0<0:V'/ $!$u%,-3o,xk2€1QKT6OD60 }nGQK2''ijk(6?61F`6QJCz ;H;0M#2!/1$gu%#,-116!B1'1 j(m6j0 ;r16$Y63(i7!h%71€ 6611j(r%&'%"(1j6•-,QTBS". (3o61MOT6OD66•-$4866(8/%0 Chạy tập tin MPEG trong VB6 K2g3mq15K%7%n!7%+6AD=H0;i76 $&'$5SAD=HkK0 D$J?61H=6EINNO110NNNN1H=6ENN9;:O=6 I6(;:;@@E(;:II6<I6 D$J?6HE6DM1INN![GNNNNHE6DM1NN9;: ‰I6DE(;:‰E6DE(;:;@@I6<I6 D$J?61EEINNO110NNNN1EENN9;:K611 E(;:LEE(;:LII6(;:OK!I6< I6 K61F@F?M1PNNNN J11F?M1E NAX@6P`K66(`K66(BY(= DD6H=9<;66 =P`K660= =D6 DD6I=9;:MOF=;66< `K660=9<PMOF= D6KNN=NN =D6 NA1X@6PY[(e(e( DD6H?M19<E ?M1P1F?M1 =D6 DD6I?M19;:MOF?M1E< 1F?M1PMOF?M1 D6KNN?M1NN =D6 N_l%55S%j,- D$E`K66FXD69< 1F?M1P1F@F?M1 =E N}€5%|, D$E`K66FLD69D6;D6;< `K660=PD6;0LD69NN=NN(>< 1F?M1PD6;0LD69NN?M1NN(1F@F?M1< =E D$E`K66F>19< 11E6 =E D$E`K66FTD69D6;D6;< KD6;0TD69NN=NN(`K660=(>< KD6;0TD69NN?M1NN(1F?M1(1F@F?M1< =E D?6XD9<;66 EEŠ[e 1EENNAD=HD16NN((I9<(e XDP9A‹9(Y(d<PNNNN< =?6 D?611D9< J11>6J6EŠG…… J1OLI6 J1EŠYGf J11EŠG…… J1E6I6 J1E6D?E X@J9?M1<PNNNN> 11CPNN=6O@NN =3?6 =X@ E6PHE6DM19?M1(1(G……< E6D?PI@‹91(E6< 6FTPT 1>6J6PNN6NNaE6D?aNNAD=H:6AD=HDDNNa `K660TaNNEYed[d\YfG\NN OLP1EE91>6J6(ea(ea(ea< X@OL]^e>N6 1H=6EOL((YGf 11CP A;63($K =3?6 =X@ 11DPNNENN 1EENNAD=HDNN(e(e(e =?6 D?611D9< 1EENNAD=HDNN(e(e(e =?6 D?611E69<E 1EENN6AD=HDNN(e(e(e 1EENN6AD=HDNN(e(e(e =?6 D?6D66XE9< EEŠ[e 1EENNAD=HD1@6116NN(e(e(e 1EENNAD=HD66NN((I9<(e D66XEPL69A‹9(Y(I9<<{Yeee< =?6 D?6D669< EEŠ[e 1EENNAD=HD1@6116NN(e(e(e 1EENNAD=HD66NN((I9<(e PL69A‹9(Y(I9<<{Yeee< X@]†e>D66PNNeQNNa?619(NNeeNN< X@^…Z> 1PX9{†e< PB91Š†e< D66P?6191(NNeeNN<aNNQNNa?619(NNeeNN< =X@ =?6 D?6IXE9< EEŠ[e 1EENNAD=HD1@6116NN(e(e(e 1EENNAD=HDNN((I9<(e IXEPL69:9A‹9(Y(I9<<<{Yeee<NL69KX9A‹9(Y(I9<<<{Yeee< =?6 D?6I9< EEŠ[e 1EENNAD=HD1@6116NN(e(e(e 1EENNAD=HDNN((I9<(e PL69:9A‹9(Y(I9<<<{Yeee<NL69KX9A‹9(Y(I9<<<{Yeee< X@]†e>IPNNeQNNa?619(NNeeNN< X@^…Z> 1PX9{†e< PB91Š†e< IP?6191(NNeeNN<aNNQNNa?619(NNeeNN< =X@ =?6 D?669< @1K60E6O$A6(A =?6 D?6E!>69E6< 1EENNAD=HD1@6116NN(e(e(e X@XDP>>1EENNAD=HD@61NNaE6(e(e(e X@XDP?>1EENN!AD=HD6NNaE6(e(e(e =?6 Truyền giá trị qua trang khác với phương thức Server.Tranfer (ASP.NET) ED0M=>$666V %7!71+,x•$6!6!• 150M,1#6%76!ƒ0 :i15(TD6OY03$4G36366(GL*?:6 660;1j7 15G(TD6OG03(r!363%|%,- + TD6OY03Q ]6^ ]@61PNN$NN^ ]6PNNeNN^ ]6^ ]^ ]^ ]QIPNNIYNNPNN$NN^?M1Q]{QI^ ]{^ ]^ ]Q>3;63PNN3?M1NNPNN$NN^]{Q>3;63^ ]QL*?:6PNN@$?M1NNPNN$NN =6APNN?1*0NN K66>6:PNN3?M1NN^]{QL*?:6^ ]{^ ]{^ ]^ ]^ ]QIPNNIGNNPNN$NN^IM1Q]{QI^ ]{^ ]^ ]Q>3;63PNN3IM1NNPNN$NN^]{Q>3;63^ ]QL*?:6PNN@$IM1NNPNN$NN =6APNNI1*0NN K66>6:PNN3IM1NN^]{QL*?:6^ ]{^ ]{^ ]^ ]^ ]{^ ]^ ]Q;6PNN1D6NN6!PNN1D6FK!NN PNN$NN>3PNNE1NN^]{Q;6^ ]{^ ]{^ ]{6^ ]{^ ]{@61^ ]{6^ TD6OY03g7%#TD6OG03#+%,-$6G363Q $61D6FK!9Cz(=$<Œ @9D0X:<Œ L60L9NNTD6OG03NN<• • • :V%nv6g!/n+!TD6OG0K2 E$0>@ $61D6FK!9Cz(=$<Œ @9D0X:<Œ E$0>@9NNTD6OG03NN<• • • >6ED0M=>(E$>@1p%+g!/n@61(*668156!0 Ap•$i7%+1jGS,&>@>%7+i7 %,-n15140 $61D6FK!9Cz(=$<Œ @9D0X:<Œ E$0>@9NNTD6OG03NN(<• • • Tạo Font và Xoay Chữ MnK666:;V65?66~ %"?6(Ž?6(%1(00$00$001K?6 6~1%,-n&# 0Kii736 6 15iV!%76 2$+0 :4Y\1j(i$•,K?6151, qqiw!%&'0 D$J?6K?6INN[GNNNNK?6NN9 ;:@6FI6( ;:@6FOI6( ;:1I6( ;:66I6( ;:OI6( ;:I6( ;:6I6( ;:!6I6( ;:FI6( ;:6F6I6( ;:F6I6( ;:*I6( ;:FF@1I6( ;:@F1E<I6 ;i7%pn6j1jke%7+1p%+ST6O0 ;r.y115j1j%S(1j!i71!'61AEJMQ •@6FQH+n6S?66%&$+30 •@6FOQ;n5S?66%&$+D30M#keT6Og•+1p%+• -$4n6S?60 •1Q}mi*S?66$4%,xk10>6%50 •66Q}m,4S (,T6O31,4S i*S %j jg+t*0 •OQKr%+%5%1S?6(15j eB^Zee0;€e%7+1p%+(\ee ,x($dee%10 •QM#+!e( g0 •6QM#+!e( g%,-,40 •!6QM#+!e( g%,- 0 •FQH+r%+3!q$,L(H!(0>/ ,x%p+kMEXFKLE=>9e<0 •@F1Q>S?6($QNN>1MOL61NN6pNNK6MO0NN00$00$00 1K?6'$nS?6$814%,-60}7i7?6'•1 ECzDX%7€?614615%j,-,?616pD;6300$00$000ECzg' $nS?6w0K,&i7NN$g NN•?6%|€0_36•1 ECz%7'$n+1p%+$•1JCz%73i?6$'i540 ;mx|3115$0 D$J?6ECzINN[GNN9;:I6(;:CzI6< I6 D$J?6K?6INN[GNNNNK?6NN9;:I6(;:T I6(;:=I6(;:CI6(;:TI6(;:XI6(;: I6(;:EI6(;:KI6(;:CDI6(;:KDI6(;:‘ I6(;:D?I6(;:?E<I6 D$J?6JCzINN[GNN9;:CzI6<I6 D$K6DLCC?F‘`IX>‡PG [...]... chính của chúng ta (thuật toán để nhận diện số credit card chúng tôi đã trình bày ở phần trước) 1: 2: 3: 4: 5: 6: 7: 8: 9: 10 : 11 : 12 : 13 : 14 : 15 : 16 : 17 : 18 : 19 : 20: 21: 22: 23: 24: 25: using System; using System.Web.UI; using System.Web.UI.WebControls; namespace CustomValidators { /// /// Summary description for Class1 /// public class CreditCardValidator : BaseValidator { protected... thừa các sự kiện 8 Protected WithEvents ltlAlert _ 9 As System.Web.UI.WebControls.Literal 10 11 Thêm các dòng code sau Web form của bạn 12 Private Sub Say(ByVal Message As String) 13 ' Format string properly 14 Message = Message.Replace(''''', ''\''') 15 Message = Message.Replace(Convert.ToChar (10 ), ''\n'') 16 Message = Message.Replace(Convert.ToChar (13 ), '''') 17 ' Display as JavaScript alert 18 ltlAlert.Text... U V W X Y Z '' ''0 1 2 3 4 5 6 7 8 9''); for($i=0;$i PHP và Java Một điều khá thú vị các các chức năng của PHP là khả năng sử dụng các phương thức của các đối tượng Java, mở ra khả năng tích hợp các ứng dụng PHP của bạn với các ứng dụng Java Mời các bạn tham khảo các thực hiện Để sử... test.html encode.html Một số mẹo vặt của ASP.NET Hôm nay chúng ta sẽ tìm hiểu các kỹ thuật sau: Hiển thị các hộp thoại cảnh báo trên WEB (Displaying Web Warning Messages), tạo một nút Default, các bí ẩn sau các User Control Hiển thị các Web Warning Message: Đây là các bước đơn giản để tạo một cảnh báo bằng Javascript, bạn chỉ cần một một dòng lệnh và đặt ở bất cứ dâu trên ASP.NET 1 Đặt các dòng script sau ... == 1) { firstNumToAdd += ccAdd; indicator = 0; } else { if ((ccAdd + ccAdd) >= 10 ) { int temporary = (ccAdd + ccAdd); num1 = temporary.ToString().Substring(0 ,1) ; num2 = temporary.ToString().Substring (1, 1); secondNumToAdd += (Convert.ToInt32(num1) + Convert.ToInt32(num2)); } else { secondNumToAdd += ccAdd + ccAdd; } indicator = 1; } } bool isValid = false; if ((firstNumToAdd + secondNumToAdd) % 10 ==... indicator = 1; int firstNumToAdd = 0; int secondNumToAdd = 0; string num1; string num2; 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: // chuyển số credit sang mảng ký tự char[] ccArr = valueToValidate.ToCharArray(); for (int i=ccArr.Length -1; i>=0;i... và kết quả được trả về Nói cách khác, nút search đã được set là default Làm cách nào? Đơn giản thêm một dòng vào sự kiện Page Load, gọi phương thức RegisterHiddenField Page.RegisterHiddenField('' EVENTTARGET'', ''tênnútcủabạn'') Các bí mật sau các User Control Các User Control thường là các mảnh code dường như vô nghĩa khi bạn nhìn Nó không quá khó, và rất hữu ích trong các website lớn và tiết kiệm... false; } return isValid; } } } Biên dịch thành Dll: csc /target:library /out:c:\inetpub\wwwroot\bin\Validator.dll *.cs /r:System.dll,System.Web.dll Sử dụng Dll trong dự án của chúng ta 1: 2: 3: 4: 5: 6: 7: 8: 9: 10 : 11 : 12 : 13 : 14 : . J 1 ?M 1 E J 1 ?; J 1 X16L6E J 1 @M 1 E J 1 L6OD66J6 J 1 =1 M 1 E. J 1 =1 M 1 E J 1 =1 M 1 E J 1 =1 E J 1 =1 KE J 1 J 1 E @M 1 PKQR=3603 J 1 P(

Ngày đăng: 06/10/2013, 17:20

TỪ KHÓA LIÊN QUAN

w