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,695 of 10,840   
   Rick Rothstein [MVP - Visual Basic] to All   
   Re: Newbie -help with passing variables    
   13 Oct 05 22:29:58   
   
   From: rickNOSPAMnews@NOSPAMcomcast.net   
      
   > What is TxtName?  Is this a variable in Form2?   
   >   
   > If it is a text box on your form, it should be referrenced like   
   this:   
   >   
   > Me.TxtName = Form1.FName   
      
   Normally, I don't use the ME or form-name object qualifier for   
   controls housed on the form where the code is executing (although   
   it can't hurt to do so); however, I would recommend specifying the   
   Text property instead of relying on the implied default property   
   (I think it makes one's code much easier to read during   
   maintenance)...   
      
        TxtName.Text = Form1.FName   
      
   Rick   
      
   --- 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