home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,094 of 10,840   
   Nat to All   
   Re: How do I Execute the content of a te   
   18 Dec 04 08:42:13   
   
   From: n515hoop@centurytel.net   
      
   >> In VB5 I have a textbox containing "cmdText1.Visible = False".   
   >>   
   >> How can I execute this? IOW: How can I hide cmdText1 using the   
   >>above?   
   >>   
   >> Nat   
      
   > Actually, you can execute a string in VB, if you use the Microsoft   
   > Script Control:   
   >   
   > Private Sub Form_Load()   
   >    Text1.Text = "cmdText1.Visible = False"   
   >    Call ScriptControl1.AddObject(cmdText1.Name, cmdText1)   
   > End Sub   
   >   
   > Private Sub Command1_Click()   
   >    Call ScriptControl1.ExecuteStatement(Text1.Text)   
   > End Sub   
      
   Ah....now all I have to do is find ScriptControl.  (g)   
   thanks, I'll give it a try.   
   nat   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca