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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CReports, 'viDate' structure wrong?

Status
Not open for further replies.

JoelMcNary

Programmer
Jul 9, 2003
11
US

I'm using the C api library and the
viDate structure in and around these
two calls:

Call PEGetNthParameterCurrentValue Returns
Call PEAddParameterCurrentValue

Both these calls use a data structure
called 'viDate' which is defined to
be an array of 3 short ints. We load
the ints with valid YY MM DD values,
and we get an invalid value/overflow
error on some of them (mostly current
dates). It seems 'viDate' is not documented
properly - any one know the correct use
of 'viDate' for date loading onto a report?

.



 
... yes ... we know this
is what it says, we also
know this is NOT the way
it works!

 
If you're passing a two digit year, change it to four digits.

-dave
 
... thanks for your attentiveness.
We are entering years of all types -
the same condition applies: the
output is not as described. Have you
actually implemented this
particular API, or are you giving
us advice after reading the
documentation?

We are sending it three valid ints
(three little pigs?) - we are
getting garbage output. The problem
isn't with our input in the sense
that we are obeying the description.

Have you tried this API yourself?

thanks.
 
I've only tried it using their VB API sample apps, not with C or C++.

Sorry, mang... can't help you.

Good luck,

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top