General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion .Selection.Find.Execute

  • jrob61

    .Selection.Find.Execute

    Participants 0
    Replies 1
    Last Activity 6 years, 4 months ago

    using XMAX 10.0 control within a vb.net form and wondering if I'm using the correct method for a Replace?
    for example, during a Find the following returns True if phrase is found or False if phrase is not found: .AxXMetaLControlDraftingEditor.Selection.Find.Execute(with XMetaLControlLib.SQFindReplaceAction.sqFind).
    However, when i use XMetaLControlLib.SQFindReplaceAction.sqReplaceFind to mimic the Replace button, it always returns True, regardless if the search word exists or not.

    Ideally, we are trying to mimic XMetaL Author Essential 5.5's Find and Replace buttons (Find, Replace, and Replace All).

    Reply

    jrob61

    Reply to: .Selection.Find.Execute

    to mimic Replace button simply used a combination of both .SQFindReplaceAction.sqFind & .SQFindReplaceAction.sqReplaceFind

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support