Storages & Files ReBind method
ReBind method

Re-binds the record to the same stream with the same filter. Can be called only if BindTo was called before. Allows the filter to recalculate the record representation in the stream.

Syntax:

record_object.ReBind

Examples:

Set rec = Server.CreateObject("newObjects.utilctls.SFRecord")
Set main = Server.CreateObject("newObjects.utilctls.SFMain")
Set file = main.OpenFile("Somefile.bin")
rec.AddField "FirstName", vbString, 20
rec.AddField "LastName", vbString, 20
rec.BindTo file
rec.Filter.unicodeText = True
Response.Write "The file contains " & rec.RecordCount & " records"
' Changes a setting of the filter and invokes ReBind to allow it to recalculate.

Remarks:

ReBind operation must be invoked any time a change is made to the record object settings or the filter settings (through which the record is bound to the stream). This excludes the changes of the field values, of course.

Applies to: SFRecord object

See also: SFFilter

Supported on:

Windows 95/NT and later
Windows CE 3.0 and later
Pocket PC/Windows Mobile 2003 and later
Windows CE.NET 4 and later

 

newObjects Copyright 2001-2006 newObjects [ ]