FindMember Method (ITimeInterval Object)

See Also     Example     Applies To     Specifics    


Given a time, the name or ordinal of a particular member, and a search direction, find the matching member and return its start time as a DATE.



object.FindMember PITime, Index, WhatToFind, [LocaleIndependent]

The FindMember method syntax has these parts:

Part Description


An object expression that evaluates to an ITimeInterval object.


A PITime object, giving the time from which to begin the search.


A Variant, giving the name, short name, or ordinal number of the member to look for.


A value from the FindIntervalConstants enumeration, indicating which particular member to look for, as shown in Settings.


An optional Boolean value, indicating the language locale in which to return the result, as described in Settings. False by default.



The settings for WhatToFind are:

Setting Description
fiBefore Finds the specified member next previous to the starting time.
fiOnOrBefore Finds the specified member at the starting time, or next previous to it.
fiCurrent Finds the specified member that occurs in the current cycle. For instance, Tuesday of the current week or March of the current year. If the specified member does not occur in the current cycle, such as the thirtieth of February, returns the error code pseORDNOTFOUND.
fiOnOrAfter Finds the specified member at the starting time or next subsequent to it.
fiAfter Finds the specified member next subsequent to the starting time.

The settings for LocaleIndependent are:

Setting Description
True The name is returned in the US English locale, regardless of the operating system locale. This may be useful for writing portable programs.
False The name is returned in the operating system locale.

Enabling Operational Intelligence