This may be of interest to Cach�+VB users.
I would appreciate if Delphi/PowerBuilder/Java/CPP users can test the same
and post
their findings in this thread.
Cach� version 5.0.0
1. Translation methods when executed from VB on Date property with
collection array or list attribute fail..
2. Class methods of %Library.Date class give incorrect results.
A) Class User.cListClass Extends %Persistent [ ClassType = persistent,
ProcedureBlock ]
{
Property MyName As %String;
Property MyList As %Date [ Collection = list (or array) ];
}
B) In Cach� environment (COS), one can use
w oref.MyListLogicalToDisplay(oref.MyList.GetAt(X))
or
w oref.MyListLogicalToOdbc(oref.MyList.GetAt(X))
C) In VB6, the following does not work
Set mObj=mFactory.OpenId("User.cListClass",N)
Text1.Text=mObj.MyListLogicalToDisplay(mObj.MyList.GetAt(X))
Run Time Error 9990 is raised
"Variant of Variant ByRef Data Type 0 is not currently not supported."
D) If ones uses the following in VB
Set mObj=mFactory.Static("%Library.Date)
Text1.Text=mObj.LogicalToDisplay(54231)
The result is
06/22/2048
In COS, the result (correct) is
w ##class(%Date).LogicalToDisplay(54231)
06/24/1989
E) I do not recall if these bugs were present in versions 3.2.1+ and 4.X.X
F) This has been logged with Support, who in turn have logged it with
Development.
--
Regards
Sukesh Hoogan
e-Compact Enterprise Solutions.
Bombay, India
[EMAIL PROTECTED]
website : http://personal.vsnl.com/sukesh_hoogan (updated March 10, 2004)
Reply to the newsgroup only, everybody benefits.