Print Page | Close Window

FindConstraint() - Spelling and Need Help

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1032
Printed Date: 07 July 2025 at 6:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: FindConstraint() - Spelling and Need Help
Posted By: jwhagen
Subject: FindConstraint() - Spelling and Need Help
Date Posted: 06 August 2004 at 2:07pm

I am working with the CXTPItemConstraints to along with the CXTPPropertyGridItem. I have run into a minor problem and need to know how to have the desired constraint show up in my list when the child item is displayed. For instance,

 // Find the value for this parameter and preset it
 if (-1 == pList->FindConstaint(sAirRating))
  pList->SetCurrent(pList->FindConstaint(NO_ DATA));
 else
  pList->SetCurrent(pList->FindConstaint(sAi rRating));

I'm trying to set the current value (found in the variable) to be displayed to the user, if one was found. If not found, then I want it to display NO_DATA ( _T("NoData") ). However, as it now stands, my default value for the sAirRating variable is NULL and I expect NoData to show on the child value, but I get nothing.

Any idea why?

Also, the member function FindConstaint is spelled wrong. Should be FindConstraint (note the missing R).

Thanks!

John Hagen

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net