Posted 20 years ago
by Martin Lundberg
- Sweden
Hello again =)
I guess I have to reask my question. I'm having problem understanding how to use the length parameter of memberlist.show() functions. You told me to get the startoffset of the token, and the caret offset. I had to use the GetPreviousToken() method to get the token before the caret, but it's not working.
I've done this:but I get the error: The offset '8' added to the length '3' must be less than or equal to the count of characters in the document.
What have I done wrong?
I guess I have to reask my question. I'm having problem understanding how to use the length parameter of memberlist.show() functions. You told me to get the startoffset of the token, and the caret offset. I had to use the GetPreviousToken() method to get the token before the caret, but it's not working.
I've done this:
Token myCurrentToken = editor.SelectedView.GetPreviousToken();
int test = editor.Caret.Offset - myCurrentToken.StartOffset;
editor.IntelliPrompt.MemberList.Show(editor.Caret.Offset, test);
What have I done wrong?
Martin Lundberg
Student, Sweden