Results 1 to 3 of 3
  1. #1

    case insensitive tags

    As I understand it tags are case insensitive.
    This is a bit annoying because I would like to rely on them as an implicit test for, lets say, naming of buttons, for instance.
    Someone had spelt an OK button 'Ok' rather than 'OK'. Sure enough the tag for the button was 'Ok'. When the spelling was corrected a test which clicked that button still passed without me having to correct the tag. Damn.
    My question is, is there any way to make tags case sensitive, and why aren't they by default?
    Tempus fugit, Carpe Diem, et al

  2. #2

    Re: case insensitive tags

    No, there's no way to make them case sensitive.

    You could write a new class for your PushButton objects, for example, that has it's own Exists method that checks for existence and proper spelling/capitalization before returning TRUE or FALSE.

    That's something I've done for error messages: the Exists method in that class checks the existence, style, and color of the message, complaining appropriately when necessary.

    - Dave
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  3. #3

    Re: case insensitive tags

    You could also use a function to return the tag and have the function check the case of the text and raise an error if incorrect.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 06:01 PM.

Copyright BetaSoft Inc.