Data Access Worldwide Knowledge Base
Article ID 2297 Article Title INFO: Ascending/Descending constants for cCrystal vs CrystalReport Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2297 KBase Category VDF11 Date Created 03/05/2007 Last Edit Date 03/22/2007
Article Text
If you are converting programs that contain CrystalReport objects and you want to convert these to the RDC way (so using cCrystal) you need to pay attention to used constants. If there is a replacement for the PE_<name> constant in the RDC class structure you need to convert the use.
For example the sort order. In CrystalReport class objects the constants are PE_SF_DESCENDING and PE_SF_ASCENDING. In cCrystal the constants are named crDescendingOrder and crAscendingOrder. It is not the name that is important but the value. PE_SF_DESCENDING is defined as 0 and crDescendingOrder is defined as 1 while PE_SF_ASCENDING is defined as 1 and crAscendingOrder is defined as 0.
Note: These differences are made by Business Objects. If you take the RDC route you should fully take that route.
Contributed By:
Vincent Oorsprong
Company: Data Access Worldwide
email: vincent.oorsprong@dataaccess.eu
Web Site: http://www.dataaccess.eu
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.