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,029 of 10,840   
   J French to All   
   Re: Date and Time   
   01 Dec 04 09:20:10   
   
   From: erewhon@nowhere.uk   
      
   On Wed, 01 Dec 2004 03:16:07 GMT, "Steve Z"    
   wrote:   
      
   >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?   
      
   You have made one or more of your Textboxes into a Control Array   
   - in other words you have put something in the Index property   
      
   --- 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