SetMRPSize (set MRPSize value)

Top  Previous  Next

 

SetMRPSize( MRPSizeFlag ),VIRTUAL

SetMRPSize

Sets the value of the UseMRP property.

MRPSizeFlag

A BYTE value that sets the MRPSize property value.

The SetMRPSize VIRTUAL method is used to set the value of the MRPSize property. This property is used in conjunction with the IP Driver processing of Multiple Request Packets.

Implementation:

SetMRPSize sets the value of the PROTECTED MRPSize property. You can use the GetUseMRP value to detect the MRPSize value set by the templates, and reset it at runtime via the SetUseMRP method.

Example:

IF Access:Orders.GetMRPSize() < 100 !Currently using a small block size

Access:Orders.SetMRPSize(100)      !Use an MRP Packet Size that will

                                   !fetch (and cache) 100 rows in a

                                   !single request

END

 

See Also:     GetMRPSize