Page 1 of 1

Set CursorType

Posted: Thu 05 Feb 2009 17:26
by scanc
Hello, i'm trying to set the CursorType property of a TMSQuery using Delphi 7 editor.

I can change the property only on the component using object inspector but i need to do it with delphi sintax.

How can i do?

Thanks in advance

Posted: Fri 06 Feb 2009 09:26
by Dimon
To set CursorType you can use the following code:

Code: Select all

MSQuery.CursorType := ctDynamic;
To use values of CursorType enum you should add the OLEDBAccess unit to the uses clause of your unit.