Bug in replace text in LOGIC EDITOR

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Charlie Crackle, Aug 23, 2005.

  1. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    If you do a find and replace in the logic editor

    you type your find and replace text and press OK.

    It replaces the first item...

    you realise you meant to press Replace ALL

    you choose the option again but for some reason the FIND text now has a leading quote (") .

    Why the quote ??

    Charles
     
    Charlie Crackle, Aug 23, 2005
    #1
  2. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    I have also noticed it puts the replace text in the find text box also !!!

    :)
     
    Charlie Crackle, Aug 23, 2005
    #2
  3. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    Now this is code more clever that I thaught.......

    In my first two posts I was replacing 'entrance' with 'toilet'

    Line was

    getlightingstate("entrance")


    It does the replace and leaves the cursor after the 'e'

    The Find and replace actually then gets what ever word the cursor is near...
    in this case "entrance (need to change code so that the quote is not taken as part of the word)

    This is not how search and replace works in most programs(in my experience)

    Most programs leave the find with a default value of what was typed last. EXCEPT if something was hightlighted. If highlight then the find will have the the highlighted text.


    I tried hightlighting some code and then pressing replace. Your program ignores the highlight and just gets the complete word that the cursor is near.

    What do you think....

    Charles
     
    Charlie Crackle, Aug 23, 2005
    #3
  4. Charlie Crackle

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    This behaviour is very similar to other code editors (for example, Delphi).

    If you want to get back the last search item, just drop down the list and select the most recent item.

    To an extent, there is nothing much that can be done about the search and replace behaviour as the editor is a bought-in component.
     
    Darren, Aug 24, 2005
    #4
  5. Charlie Crackle

    Charlie Crackle

    Joined:
    Aug 3, 2004
    Messages:
    815
    Likes Received:
    8
    Location:
    Melbourne
    And here I was thinking what a very clever piece of code this developement environment was and how quickly you did a very complex a job.

    I am still very impressed with the development environment....

    Charles
     
    Charlie Crackle, Aug 24, 2005
    #5
  6. Charlie Crackle

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    We try to save work when we can :)

    The bought in component doesn't do much of the whole editor, but the search and replace is part of it.
     
    Darren, Aug 25, 2005
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.