Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Holiday Array Error

Status
Not open for further replies.

bobhagan

MIS
Apr 28, 2001
111
US
I pretty much copied this straight from Ken H's FAQ:

BeforeReadingRecords;
DateVar Array Holidays := [
Date(2005,05,30),
Date(2005,07,4),
etc
];

It gives an error saying, "The result of a formula cannot be an array" on both CR8.0 and CR.Net. I'm using CR syntax.

Ideas?

Thanks
Bob Hagan
 
Just add an addtional line to the end of the formula, like an empty string:

"";

An Array can't be the result of a formula, so you have to work around that.

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top