• Hi,

    I'm french so sorry for my poor english.

    I used OCX with Windev and I move cursor to bookmark with command :


    Code
    AX_TextDynamic>>Memo>>TextCursor>>MoveToBookmark(bookmarkVar)

    Now I want to select the bookmark but I don't know the correct syntax. I've tested this :

    Code
    AX_TextDynamic>>Memo>>CurrObj>>Select


    But this command select the last Bookmark add, no the selected bookmark.

    Can you help me ?

    Also, can you help me for the command to remove the selected bookmark ?

    Thanks

    • Offizieller Beitrag

    Hi,

    You can use this code to create a bookmark:

    WPDLLInt1.Memo.TextCursor.InputBookmark("BOOK1", "Some Text", false);

    And this code to search and select:

    if (WPDLLInt1.Memo.TextCursor.MoveToBookmark("BOOK1"))
    WPDLLInt1.Memo.CurrObj.Select(2);

    Select has different modes. Mode 2 will select the markers and the text.


    Regards,
    Julian