form2,form3¶¼·Ö±ðÓÐÒ»¸ölabel1ÊôÐÔÊÇÒ»Ñù
Private Sub Command1_Click()
Dim lbl As Label
if combo1.text="1" then
lbl = Form2.Label1
else
lbl = Form3.Label1
end if
With lbl
.Caption = Combo1.Text
...........................................
50¶à¸öÊôÐÔÔÚ²»Í¬µÄÁ½¸ö´°¿Úform2,form3
End With
Form2.Show
Form3.Show
End Sub
ÈçºÎ°ÑÉÏÃæµÄ´úÂë¸ÄÕýÈ·£¬ÒòΪÊôÐÔÌ«¶à£¬²»¿ÉÄÜͬʱÁ½¸ö´°¿ÚÒ»ÆðͬʱÊôÐÔ¸³Öµ
²»¶®ÄãµÄÒâ˼
label×î¶àÒ²¾ÍÊÇÓõ½ text λÖà ´óС ÑÕÉ« Ñùʽ£¬ÔõôÓÐ50¶à¸öÊôÐÔ£¿
ÁíÍâ²»ÒªÔÚ´°¿ÚÖ®¼äÀ´»ØµÄµ÷Óã¬ÕâÑù´úÂëºÜ»ìÂÒ¡£
Dim lbl As Label
if combo1.text="1" then
lbl = Form2.Label1
else
lbl = Form3.Label1
end if
'»ìÂÒÊÇÄã´úÂëÂß¼»ìÂÒÒýÆðµÄ,Form2.Label1 ,Form3.Label1 ¶¼¸³¸ølbl,È»ºóÔÙ¸ølbl¸³ÊôÐÔ,±¾À´Form3.Label1,Form2.Label1¾ÍºÜÇå³þ,½á¹ûÂÒ³ÉÒ»ÍÅ.
ÊÇ·ñ¿ÉÒÔ¿¼Âǽ«Form2ºÍForm3ºÏ²¢³ÉÒ»¸öForm£¬½«ÆäÖеÄLabel1±ä³ÉLabelÊý×é
Private Sub Command1_Click()
Dim lbl As Object
If Combo1.Text = "1" Then
Set lbl = Form2.Label1
Else
Set lbl = Form3.Label1
End If
With lbl
.Caption = Combo1.Text
Ïà¹ØÎÊ´ð£º
ÎÒÓг§¼Ò×öµÄASPµÄ¼à¿Ø¼Ïñ£¨DVR£©µÄ¾ÖÓòÍø²¥·ÅµÄÔ´³ÌÐòÓë¿Ø¼þ£¬ÏëÒªÓÃASP.net×öÒ»¸öÊÓƵ»Ø·ÅµÄ³ÌÐò£¨ÀûÓÃËûµÄ¿Ø¼þ£©µ«²»ÖªÈçÏÂÈ¥×ö£¬Íû¸÷λָµã¡£
ÏȸãÇå³þËûÃǵĿؼþÊÇÔõôÓõÄ,
È»ºó¾ÍÖ±½ÓÓúÃÁË.
²»¹ý,Èç ......
Ò»¸ö²éѯijÐÅÏ¢µÄASPÍøÒ³£¬Ìá½»²ÉÓõÄÊÇpost·½·¨£¬²éÕÒ½á¹ûµÄÍøÒ³±ØÐëÓÒ¼üµã»÷¡°²é¿´Ô´Îļþ¡±²ÅÄÜ¿´µ½ÕæÕý²éѯ½á¹ûÍøÒ³µÄÔ´´úÂ룬ÓÃä¯ÀÀÆ÷²Ëµ¥¿´µ½µÄÊDzéѯǰµÄÔ´´úÂë
ÓÃVBÓÐʲô°ì·¨¿ÉÒÔ»ñÈ¡µ½Õâ¸ö²éѯºóµÄÔ´´ú ......
Printer.ScaleMode = 6
6±íʾºÁÃ×
Printer.PaperSize = vbPRPSA4
'³õʼ×ø±ê
x = 1
y = 4
'×î´óµÄÏß¿ð
Printer.DrawStyle = 0
Printer.Line (x, y)-(x + 132.5, y) ......
ÎÒÓÐ×Ô¶¯Éú³ÉÐòÁкŵijÌÐò£¬µ«ÊÇÔõô¸ú´ò°üºóµÄ°²×°³ÌÐò½áºÏÔÚÒ»Æð£¬ÔÚ°²×°Ê±ÌáʾÓû§ÊäÈëÐòÁкţ¬ÕýÈ·ºóÔÙ¼ÌÐø°²×°£¿£¿£¿
·½·¨1£ºÄã¿ÉÒÔÔÚÔËÐгÌÐòºóÊäÈëÐòÁкÅ×¢²á£¬ºÜ¶àÈí¼þ¶¼ÊÇÕâÑùµÄ¡£
·½·¨2£ºÊ¹ÓÃSetu ......
³ö錯µÄ時ºòÈ¥執ÐÐÒ»¶Î´ú碼Ö®áá,Ôٻص½³ö錯µÄµØ·½½ÓÖøÍùÏÂ執ÐÐ
ÈçºÎÓÃvb來實現?
Sub FFFFFFF()
AAAA:
On Error goto BBBB
....
.... ......