TIP: Click on subject to list as thread! ANSI
echo: visual_basic
to: All
from: Leo013
date: 2004-06-20 08:16:00
subject: convert a string to set a

does someone know how to convert a string to set a label, the following code
gives a "Type mismatch"

Private Sub Command1_Click()
  Dim str As String
  txt = Label3
  Set lb = txt
  lb.Caption = "Hi"
End Sub

and this following works fine:

Private Sub Command1_Click()
  Dim str As String
  Set lb = Label3
  lb.Caption = "Hi"
End Sub
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com

---
 * RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
 * RgateImp.MoonDog.BBS at 6/20/04 8:16:15 AM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)
SEEN-BY: 633/267 270
@PATH: 278/230 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.