CurrencyWidth

ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP
Url replacer, IIS url rewrite Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object
 IISTracer, real-time IIS monitor
 Huge ASP upload - upload files with progress.
          Property 
          Member of  RSConvert.DBF 

Description

Width for Currency field type

Syntax

vCurrencyWidth = DBF.CurrencyWidth
DBF.CurrencyWidth = vCurrencyWidth

Returns

Byte

Examples

 Export from ADO sample  
  'Sets the content type
  Response.ContentType = "application/x-msdownload"
  'Specify filename for download
  Response.AddHeader "Content-Disposition", "attachment;filename=Orders.DBF"
  
  'Create Recordset and DBF objects
  Set ADORS = CreateObject("ADODB.Recordset")
  Set DBF = CreateObject("RSConvert.DBF")
  
  'Sets parameters for Integer and Currency fields
  DBF.IntegerWidth = 6
  DBF.CurrencyDecimal = 2
  DBF.CurrencyWidth = 6
  
  'Open table
  ADORS.Open "Payments", "DSN=ADOSamples"
  
  'Write DBF file to the client
  Response.BinaryWrite DBF.GetFile(ADORS)
  
  'Close recordset
  ADORS.Close
  Other links for CurrencyWidth

Methods of DBF class

RSConvert.DBF

Object for converting DAO or ADO recordset to the DBF file. It enables direct output of DBF files from the ASP page.

RSConvert

      Recordset converter is a library for converting DAO or ADO recordsets to MDB or DBF files. It enables direct binary output of MDB or DBF files from ASP pages with one row of code. The object also supports on-the-fly compression by zip/arj.

© 1996 – 2006 Antonin Foller, Motobit Software, help{at}pstruh.cz, help v. 2.1.63