
Functions don't work in VB5?
I tested your code in VB5 since I didn't have any problems with these
functions in previous versions. I didn't find anything wrong even when I
tried several possible variations with and without Option Explicit. I
suggest making sure that Option Explicit is declared in each form, module
and class file. I need a larger sample of your code to examine in order to
resolve the problem.
--
Chris Haltiner
Decision Consultants, Inc.
Quote:
> I am trying to use the Day, Month and Year functions to extract the
> elements of the current date:
> x = Day(Date)
> y = Month(Date)
> z = Year(Date)
> When I run these calls in the debug window, they return the right
> answer. When I put them into my code, I get to these lines and it says
> Compiler Error: Expected Array. Can anyone help me? I'm about to throw
> VB5 in the garbage. But I'll save my ranting for another post.