Posted 19 years ago
by Paul Huckstepp
- UK
I have just upgraded from version 2.5 to 3.0 and I have a problem with some existing code:
Try
lastTypedword = Me.codeWindow2.Document.Tokens.GetTokenAtOffset(Me.codeWindow2.Caret.Offset - 1)
Catch
End Try
If isFunction(lastTypedword.text) Then
ShowInfoTip(getFunctionDetails(lastTypedword.text) & "")
End If
Previously lastTypedWord.text would return the last typed word (amazing), however the new version doesn't seem to have the property .text, has this changed? or is there a better way of doing this?
Thanks for your help
Try
lastTypedword = Me.codeWindow2.Document.Tokens.GetTokenAtOffset(Me.codeWindow2.Caret.Offset - 1)
Catch
End Try
If isFunction(lastTypedword.text) Then
ShowInfoTip(getFunctionDetails(lastTypedword.text) & "")
End If
Previously lastTypedWord.text would return the last typed word (amazing), however the new version doesn't seem to have the property .text, has this changed? or is there a better way of doing this?
Thanks for your help