Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¹ØÓÚÓÃvb´¦ÀítxtµÄÎÊÌâ

ÓÉÓÚÿÔ´ӱðµÄ¹«Ë¾ËÍÀ´Ò»¸ötxtÎļþ£¬¸ñʽÈçÏ£º
   
0023939608011»Æ¸ùÑø                                  1000      0100100      E
0025069060011»ÆÕñÔ«                                  4440      0100200      Y
0038270387011ÕÔÈÙР                                 1680      0100300      Y
0024431448011»Æ¹ÛÅó                                  360      0100400      Y
0023759723011Àî¹ØÕ×                                  600      0100500      Y

ÎÒÏëÏÈ°ÑtxtÎļþ´¦Àí³ÉÿÁÐÓÃÒ»¸ö¿Õ¸ñ·Ö¿ª£¬·½±ãµ¼ÈësqlÊý¾Ý¿â£¬±¾À´ÏëÓà Mid º¯Êý´¦Àí£¬µ«ÊÇÎÒ²»ÄÜÈ·¶¨ËÍÀ´µÄtxtÎļþ¸ñʽһÑù£¬ÓÈÆäÊÇÿÁÐÖ®¼äµÄ¿Õ¸ñÊý£¬Èç¹û²»Í¬¾Í»á³öÎÊÌâÁË¡£
Çë½Ìϸ÷λÎÒÓ¦¸ÃÓÃʲô·½·¨¿ÉÒÔ´¦Àí£¬Âé·³´ó¼Ò°ÑÀý×Ó´úÂëҲдÏ£¬ÎÒvb±È½Ï²ËµÄ£¬ºÇºÇ

do while(instr(s,"  ")>0)
  s=replace(s,"  "," ")
loop

ÓÃÕýÔòÓ¦¸Ã·½±ãµã£


Ïà¹ØÎÊ´ð£º

ΪʲôCдDLLÎļþC¡¢PBÄܵ÷ÓÃVB²»Äܵ÷ÓÃ

ΪʲôCдµÄDLLÎļþC¡¢PBÄܵ÷ÓÃVB²»Äܵ÷Óã¿
VBÀïΪʲôÓеÄDLLÖ±½Óͨ¹ýÒýÓÿÉÒÔʹÓã¿ÓеÄÐèҪͨ¹ýdeclareÉêÃ÷Íⲿº¯Êý£¿ÕâЩDLLÓÐʲô²î±ð£¿

1¡¢ÎªÊ²Ã´PBÄÜͨ¹ýDECLAREÉùÃ÷¶øVB²»ÐУ¿
2¡¢Èç¹ûÕâ¸ödllÖÐµÄ ......

vb´òÓ¡ÎÊÌâ


Printer.ScaleMode = 6
6±íʾºÁÃ×
Printer.PaperSize = vbPRPSA4

'³õʼ×ø±ê
x = 1
y = 4


'×î´óµÄÏß¿ð
Printer.DrawStyle = 0
Printer.Line (x, y)-(x + 132.5, y) ......

¹ØÓÚVBÖеÄMDI×Ó´°Ìå²»ÄÜÒÔģʽ´°ÌåÏÔʾ

Private Sub cmdModify_Click()
    Dim iRet As Integer
    If dltUser.Text = "" Then
        MsgBox "ÇëÑ¡ÔñÒªÐ޸ĵÄÓû§£¡", vbOKOnly ......

VB ÊôÐÔµÄʹÓÃÎÞЧ

Private Sub DataList1_Click()
If DataList1.Text = "" Then
Lbl_EmpId = ""
Lbl_EmpName = ""
Lbl_Birth = ""
Lbl_Sex = ""
Lbl_Political_ ......

VB¶ÁÈ¡XMLµÄÎÊÌâ

VB code:

Private objXml As New DOMDocument60
Private xmlRoot As IXMLDOMElement
Public Function xmlNode()
Set objXml = New DOMDocument
objXml.async = False
objXml.Load ("E:\Li ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ