Results 1 to 3 of 3

Thread: Help!! Is this even possible!!!

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Answers
    2

    Help!! Is this even possible!!!

    I'm hoping someone can help me with this.

    I captured a property value using 'CapturePropertyToDataRow' to a column in my data sheet called 'SelectedItemIndex1'. Is it possible for me to use an expression using CheckPropertyValue to verify that the property I'm currently checking is 3 more than the value I captured? For example...is it possible to do the following:

    CheckPropertyValue "selected item index", "[SelectedItemIndex1] + 3"

    I've tried this using various quotes and brackets, thinking that the syntax is wrong, but can't seem to do it. Is what I'm attempting even possible? Any help would be very much appreciated!!!

    Thanks


  2. #2
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    Re: Help!! Is this even possible!!!

    Hi,

    I am not sure if am reading this correct.................

    Your requirement is to capture a property value (say Index for a combo-box) and store within datatable / external sheet. Further you wish to ascertain whether the stored property value is 3 less than the current property value you are capturing.

    If this is the case, you can achieve the same without the CheckPropertyValue usage.

    1) Fetch the propertyvalue you need to compare at runtime using GetROProperty
    2) Store it in a temp variable (if need be convert to Integer using CInt())
    3) Compare the difference between your temp variable and your stored variable using a simple If condition with minus operator
    4) If the difference equals to 3, you have your condition met

    Cheers,


  3. #3
    Contributing Member
    Join Date
    Jul 2010
    Answers
    44

    Re: Help!! Is this even possible!!!

    vVal1 = CInt(DataTable("SelectedItemIndex1, dtglobalsheet)) + 3

    CheckPropertyValue "selected item index", vVal1


  4.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact