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,089 of 10,840   
   Steve Gerrard to Hal Rosser   
   Re: How do I Execute the content of a te   
   18 Dec 04 00:37:48   
   
   From: mynamehere@comcast.net   
      
   "Hal Rosser"  wrote in message   
   news:9XPwd.2695$3X5.2069@bignews3.bellsouth.net...   
   |   
   | "Nat"  wrote in message   
   | news:gqCdnR8_P9AczV7cRVn-ug@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   
   | >   
   |   
   |   
   | not what you were hoping for, I know...   
   | JavaScript can execute a string as a Javascript command, but VB can't   
   |   
      
   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   
      
   --- 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