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,027 of 10,840   
   Steve Z to All   
   Date and Time   
   01 Dec 04 03:16:07   
   
   From: stevez6996@hotmail.com   
      
   I have code that I've used before to automatically insert the current date   
   and time into text boxes when a user clicks in the box, like this:   
      
   Private Sub txtDate_GotFocus()   
   txtDate = Date   
   End Sub   
   Private Sub txtTime_GotFocus()   
   txtTime = Time   
   End Sub   
      
   When I try to use this code in a form that is a derivative of the Visual   
   Data Manager get error message "Procedure declaration does not match   
   description of event or procedure having the same name". When I get the   
   property of the event directly from the combo box, it becomes GotFocus(Index   
   As Integer), but I keep getting Invalid Use of Property errors.   
   I see four properties for the event (Count, Item, Lbound, Ubound), should I   
   be using one of these?   
      
   --- 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