Contents 

Fast Start
Weight Scale Interfacing (Digi D770)
What Is Visual Builder?
What's New In Visual Builder?
Creating A CAPITAL Form
Creating a Form - Conceptual Overview
Creating a Form - Quick Guide For Advanced Users
The Forms Wizard
Creating A CAPITAL Report
The Label Wizard
Report Wizard Tutorial
New & Revised Topics in CAPITAL 7.5
AllocatePayment()
CrossTab()
CreateTable()
EventAdd()
FilterTable()
Find()
PayMethodName()
ReadINI()
SendHTMLMail()
TranInfo()
WriteNote()
New & Revised Topics in CAPITAL 7.41
AddPayment()
Business Functions Listing
BufferCommit()
BufferRollBack()
BufferUpdates()
ExportASCII()
GetFolder()
KitList()
LockRecord()
ReadNote()
ReadTextFile()
StockQuantity()
StrWrap()
WriteTextFile()
New & Revised Topics in CAPITAL 7.4
Business Functions Listing
CompanyName()
Department()
Field Objects
JobInfo()
Linking
Moving & Resizing Body Objects
Operators & Expressions
OrderTable()
PathData()
Picture Object Properties
ReadINI()
ReadNote()
RunApplication()
Sample Scripts
Send Product Info Email With Pictures
Start-up Switches
StockAnalysis()
TagInfo()
TranWrite()
WriteINI()
New & Revised Topics in CAPITAL 7.3
AddStock()
AddTraceProperty()
BackAllocate()
Business Functions Listing
CardFileBill()
ComError()
ComClose()
ComOpen()
ComRead()
ComSetup()
ComWrite()
ComputerName()
EchoBox()
EchoBoxOn()
EchoBoxOff()
LockSemaphore()
PasswordInfo()
ScriptRun()
TodoAdd()
Trouble-Shooting Guide
UnlockSemaphore()
New & Revised Topics in CAPITAL 7.2
Business Functions Listing
ImportASCII()
Journal()
ReadNote()
StockGetQuantity()
StockQuantity()
TimeFormat()
Version()
Basic Editing
Moving & Resizing Objects
Moving & Resizing Body Objects
Creating Forms & Reports
Form Bodies
Form Design Hints & Tips
Body Properties
Body Contents
Rule Wizard
Rule Wizard Guidelines
Body Rules
Group Wizard
Body Groups & Totals
Form Output Properties
Form Notes
Question Wizard
Form Question Prompt
Form Questions
Preface and Postscript Scripts
Form Dictionaries
Page Setup
Form Editor Preferences
Field Objects
Field Formulas
Bar Code Field Objects
Text Object Properties
Picture Object Properties
Linking
Why are Table Joins Necessary?
Linking Forms - Concepts
Linking Forms - Tutorial
Linking Forms - Hints & Problem Solver
Special Topics
CAPITAL Data Browser
Bar Codes - An Overview
Cross-Tab Concepts
Cross-Tabs
Cross Tab Fields
Cross-Tab Hints & Tips
Exporting Data
Printing
Transaction (Form) Printing
The Print Job Manager
Windows Printing Concepts
Script Programming
Business Functions Listing
Capital Business Script
Variables & Data Types
Scope
Operators & Expressions
Type Conversion
Business Functions Overview
Commands
CALL
DEBUG
GOTO (label)
IF (expression) GOTO
IF (expression) ... ELSE ... ENDIF
PAUSE
REM (*)
RETURN
Visual Forms Builder Special Variables
Sample Scripts
Sending Email Using CBS
Programmer's Frequently Asked Questions
Business Functions
AAdd()
Abs()
AddCustomer()
AddJobCard()
AddMail()
AddPayment()
AddRecord()
AddStock()
AddTraceProperty()
AllocatePayment()
Alltrim()
AnswerYes()
ArraySort()
Asc()
AsChar()
ASIZE()
AsTran()
AsVal()
AT()
BackAllocate()
BPayCRN()
BPayError()
BufferCommit()
BufferRollBack()
BufferUpdates()
CDOW()
Ceil()
CHR()
CloseFile()
CloseIndex()
CloseTable()
CMONTH()
CompanyName()
CompressTable()
ComError()
ComClose()
ComOpen()
ComRead()
ComSetup()
ComWrite()
ComputerName()
CopyFile()
CopyRecord()
CopyToClipBoard()
CreateFile()
CreateEmailJob()
CreatePrintJob()
CreateTable()
CrossTab()
CTOD()
DateFormat()
DateFromMonth()
DAY()
Dictionary()
DOW()
DTOC()
DTOS()
Echo()
EchoBox()
EchoBoxOff()
EchoBoxOn()
EchoStatus()
Eof()
EraseFile()
EventAdd()
ExpenseAnalysis()
ExportASCII()
FilterTable()
Find()
FindWindow()
ForDate()
FormAdd()
FormResult()
FreeCPU()
FormCreate()
FormShow()
GetField()
GetFolder()
Goto()
GotoBottom()
GotoTop()
HoldRecord()
GroupChange()
Idle()
IF()
ImportASCII()
IndexTable()
Input()
InputFile()
INT()
IsEmpty()
IsFile()
IsFileEnd()
IsLayBy()
IsPaid()
IsPayment()
JobInfo()
JobPriority()
JobStatus()
KitList()
LEFT()
LEN()
LockRecord()
LOWER()
LTRIM()
Max()
Min()
ModemDial()
Month()
MonthEnd()
MonthStart()
NTrim()
NumToWord()
OpenFile()
OpenTable()
OrderTable()
OpenVisualBuilder()
Pad()
PathCompany()
PathProgram()
PayMethodName()
PostMessage()
PriceUpdate
RAT()
ReadFile()
ReadNote()
ReadFileLine()
ReadTextFile()
RecNo()
RenameFile()
Replicate()
Right()
Round()
Rtrim()
RunApplication()
Seconds()
Security()
SendDirect()
SendMail()
SendEscapeCodes()
SendMail()
Shell()
Skip()
Space()
SpecialName()
SpecialPrice()
SQRT()
StockAnalysis()
StockDescription()
StockMovement()
StockPrice()
StockId()
StockQuantity()
Str()
StrLine()
StrLineCount()
Strtran()
StrWrap()
Substr()
StrZero()
Time()
Today()
TodoAdd()
TranAdd()
TranCreate()
TranWrite()
TranInc()
Transform()
TranStr()
Type()
UnlockRecord()
Unpaid()
Upper()
UserName()
UserNumber()
Version()
WaitCursor()
WaitFile()
Week()
Write()
WriteFile()
WriteFileLine()
WriteNote()
WriteTextFile()
Year()
ZipFile()
Tutorials
Report Wizard Tutorial (Basic)
Label Wizard Tutorial (Advanced)
Forms Library
The Visual Builder Report & Forms Library
Forms Stationary
Report Library - Customer Transactions
Report Library - Cash Management
Report Library - Sales Analysis
Report Library - Sales Orders & Back Orders
Report Library - Stock Control
Report Library - Service Management & Periodic Billing
Report Library - Special
Appendix
Moving Forms
Logging On
Overriding Print Warning Messages
Questions & Answers
Start-up Switches
Trouble-Shooting Guide
Weight Scale Interfacing (Digi D770)
Working With Text Printers

CAPITAL Series 7 Visual Builder Reference Guide

Prev Page Next Page

Exporting Data


This facility allows you to export data in either ASCII or dBase III file format for use by other applications or for processing by another CAPITAL Visual Builder form.

generate/sc04.gif

Output Format

  • dBase III Select to export the data in dBase III file format.

  • ASCII Fixed Width Select to export data in ASCII using fixed field lengths. This format is also called SDF or standard data format. This type of file is an ASCII text file in which the records have a fixed length and end with a carriage return and line feed.

  • ASCII Comma Delimited Select to export data in comma delimited format. This is perhaps the most common format for exporting and importing data. A delimited file is an ASCII text file in which each record ends with a carriage return and line feed. Fields are normally separated by commas, and character fields are additionally delimited by double quotation marks. The main problem with double quote delimited ASCII files is that some data import programs may be confused by the use of the double quote mark if the exported data already contains embedded double-quotes. A delimiter character is often selected that is less likely to appear within the data being exported. A common choice is to use the tab (ASCII character 9) character in place of the double-quote.

  • ASCII Tab Delimited Select to export data using tab (ASCII character 9) field separators.

  • ASCII User Delimited. Select to export data using user defined delimiter and/or "quote" fields.

Delimiter

If you have selected ASCII User Delimited as the output format you should specify one or more delimiter characters here. Any characters except blank spaces are acceptable. A delimiter should always be specified.

Quote

If you have selected ASCII User Delimited as the output format you can optionally specify a character or set of characters that surround each field. For example, if you wanted to place the symbols ~ ... ~ around each field as it is written to the ASCII file, ~ would be entered here.

Body Field List

The list of fields that will be output to the export file.

File - Overwrite

If the output file is ASCII, you can indicate whether you wish to overwrite the contents of the output file if it already exists. If this option is selected, the contents of output file is erased (if it exists) before data contained in the current body is written.

File - Append

If the output file is ASCII, you can indicate whether you wish to append to the contents of the output file if it already exists. Any data already in the file will be retained and data exported from the current body will be added to the end of the file.

Filename

Click on the generate/lookdir.gif button to select a file name and destination for the output file.

You can also click on generate/reverse.gif to clear the output file name.

generate/flashlight.jpgIf you embed a $ (dollar sign) anywhere within the file name, Visual Builder will place the generated file into the current default company data folder. It also removes the $ symbol from the file name. This is useful if you want to create a generic report that will create a data file that can be read by another form, regardless of which company the form is executed in.

For example, if you specify the destination folder as:

C:\CAPITAL\DATA\$MYDATA.DBF

and run this form from the company folder ACME, then CAPITAL will actually create the file:

C:\CAPITAL\ACME\MYDATA.DBF

Index On

If you have selected to output a file in dBase III format, you may also optionally specify an index file. This would be useful if you wanted to access the generated data file in another Visual Builder form and have the data pre-sorted.

Date Format

Choose to select the formatting for date field output. This selection is only relevant when the data file being exported contains date information. dBase III data files are always exported in dd/mm/yy format.

Overwrite Warning

If the export file already exists, CAPITAL will generate a warning message and ask you to proceed with the overwriting of the file. If you wish to overwrite the file without a warning untick this check box.

generate/tasks.gif Exported data obeys the Type setting of each alpha-numeric (character) field. For example, if you wished to output a transaction field in "raw" form (i.e., 000000001) instead of "1", then set the Type to "normal" instead of "transaction". This can be done by double-clicking on the field you wish to change and changing the Type selection to "normal". The Type setting has no effect on transaction amount fields.

Exported data does not obey the Alignment, Show, Trim Field, Suppress If Zero, Suppress Duplicates or 000,000 Separator field options.

generate/redtrafficlight.jpgBe Careful: The Decimal Places setting for numeric (transaction amount) fields and the Display Length setting for all fields except date fields is used. If field data is being truncated or you have too much white-space between fields, adjust the value in the Display Length field. In the case of date fields, the length of the field is determined by the date format used. The default date format generates an 8 character field. Date fields are always padded with zeros, so the date 1/5/03 is output as 01/05/03.