Set CursorType

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
scanc
Posts: 9
Joined: Thu 05 Feb 2009 13:23

Set CursorType

Post by scanc » Thu 05 Feb 2009 17:26

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

Dimon
Devart Team
Posts: 2885
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 06 Feb 2009 09:26

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.

Post Reply