How to Avoid an Application Error when using EM_POSFROMCHAR ?
Answer / Ravi Dutta
To avoid an application error when using EM_POSFROMCHAR, ensure that the character parameter passed is within the valid range of the edit control's text. If the character is outside the range, use EM_LINEFROMCHAR instead to find the line containing the character and then use GetLineIndex for the column.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to use a true DWORD value passed to Delphi application?
How to determine the week number of a given day in the year?
How to Display a bitmap on the client area of an MDI parent form?
How to assign a Null value to a numeric field in a table?
what qualties must have to become a SAP FICO consultant?.
How to Change the default width/height of the editor?
How to Get a handle on your files ?
What is DCOM Dependency?
Can I use DLLs developed in C or C++ from Delphi?
How is the memory used within an object in delphi?
How to Display the selected row of a DBGrid in a different color?
How to get serial number of my drive ?