How to Avoid an Application Error when using EM_POSFROMCHAR ?



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

Post New Answer

More Delphi Interview Questions

How to use a true DWORD value passed to Delphi application?

1 Answers  


How to determine the week number of a given day in the year?

1 Answers  


How to Display a bitmap on the client area of an MDI parent form?

1 Answers  


How to assign a Null value to a numeric field in a table?

1 Answers  


what qualties must have to become a SAP FICO consultant?.

1 Answers   IBM,


How to Change the default width/height of the editor?

0 Answers  


How to Get a handle on your files ?

1 Answers  


What is DCOM Dependency?

1 Answers  


Can I use DLLs developed in C or C++ from Delphi?

1 Answers  


How is the memory used within an object in delphi?

1 Answers  


How to Display the selected row of a DBGrid in a different color?

1 Answers  


How to get serial number of my drive ?

1 Answers  


Categories