Save Ukraine!

Products
CDBF - DBF Viewer and Editor
DBF Viewer/Editor, text-mode
DBF Viewer/Editor for Linux
DBF Viewer/Editor for DOS
DBF Viewer/Editor for iOS
DBF reanimator
CDBFlite
CDBFAPI
¤ DBF Script
CSV to DBF Converter
CSV to XLS Converter
XLS to DBF Converter
XLS to CSV Converter
DBF to CSV Converter
DBF to XLS Converter
DBF to MDB Converter
DBF to SQL Converter
DBF to XML Converter
DBF to DBF Converter
DBF to HTML Converter
MDB to DBF Converter
MDB to XLS Converter
MDB to CSV Converter
DBF to PDB Converter
PDB to DBF Converter
CDBFinfo
CDBFShell
CDBFview
Excel Library
Access Recovery
Excel Recovery
Online Database Converter
DBF Converters' Shell
WhiteTown Software CD

BasicScript syntax

Program -> Statements             

Statements -> (EOL | StatementList EOL)...   

StatementList -> Statement/':'...   

ImportStmt -> IMPORTS (String/,)...  

DimStmt -> DIM (VarDecl/',')...  

VarDecl -> Ident [Array] [AsClause] [InitValue]   

AsClause -> AS Ident   
  
Array -> '[' ArrayDim/','... ']'   

ArrayDim -> Expression   

InitValue -> '=' Expression   

Expression -> SimpleExpression [RelOp SimpleExpression]...  

SimpleExpression -> ['-'] Term [AddOp Term]...  

Term -> Factor [MulOp Factor]...  

Factor -> Designator                      
       -> UnsignedNumber                  
       -> String                          
       -> '(' Expression ')'              
       -> NOT Factor                      
       -> NewOperator                     
       -> '<' FRString '>'                

SetConstructor -> SetNode/','...   

SetNode -> Expression ['..' Expression]   

NewOperator -> NEW Designator   

RelOp -> '>'    
      -> '<'    
      -> '<='   
      -> '>='   
      -> '<>'   
      -> '='    
      -> IN     
      -> IS     

AddOp -> '+'   
      -> '-'   
      -> '&'   
      -> OR    
      -> XOR   

MulOp -> '*'     
      -> '/'     
      -> '\'     
      -> MOD     
      -> AND     

Designator -> [ADDRESSOF] Ident ['.' Ident | '[' ExprList ']' | '(' [ExprList] ')']...   

ExprList -> Expression/','...   

Statement -> BreakStmt
          -> CaseStmt
          -> ContinueStmt
          -> DeleteStmt
          -> DimStmt 
          -> DoStmt
          -> ExitStmt
          -> ForStmt
          -> FuncStmt
          -> IfStmt
          -> ImportStmt 
          -> ProcStmt
          -> ReturnStmt
          -> SetStmt
          -> TryStmt
          -> WhileStmt
          -> WithStmt
          -> AssignStmt
          -> CallStmt   

BreakStmt -> BREAK   

ContinueStmt -> CONTINUE   
  
ExitStmt -> EXIT   
  
DeleteStmt -> DELETE Designator   

SetStmt -> SET AssignStmt   

AssignStmt -> Designator ['+'|'-'|'*'|'/']'=' Expression   

CallStmt -> Designator ['+''+'|'-''-']   

ReturnStmt -> RETURN [Expression]   

IfStmt -> IF Expression THEN ThenStmt   

ThenStmt -> EOL [Statements] [ElseIfStmt | ElseStmt] END IF   
         -> StatementList                                     

ElseIfStmt -> ELSEIF Expression THEN 
              (EOL [Statements] [ElseIfStmt | ElseStmt] | Statement)   
    
ElseStmt -> ELSE (EOL [Statements] | Statement)   
    
CaseStmt -> SELECT CASE Expression EOL 
            (CaseSelector...) [CASE ELSE ':' Statements] END SELECT   

CaseSelector -> CASE SetConstructor ':' Statements  

DoStmt -> DO [Statements] LOOP (UNTIL | WHILE) Expression   

WhileStmt -> WHILE Expression [Statements] WEND   

ForStmt -> FOR Ident '=' Expression TO Expression [STEP Expression] EOL 
           [Statements] NEXT   

TryStmt -> TRY Statements (FINALLY | CATCH) [Statements] END TRY  

WithStmt -> WITH Designator EOL Statements END WITH   

ProcStmt -> SUB Ident [FormalParameters] EOL [Statements] END SUB  

FuncStmt -> FUNCTION Ident [FormalParameters] [AsClause] EOL 
            [Statements] END FUNCTION   

FormalParameters -> '(' (FormalParam/',')... ')'   

FormalParm -> [BYREF | BYVAL] VarList   

General
Overview
Main Window
Menu File
Menu View
Menu Edit
Dialog Options
Menu Script
Menu Help
How to buy
Command line
Language Reference
Script structure
Data types
Classes
Functions
Events
Enumerations, Sets and Arrays
Pascal
C++
Java Script
Visual Basic
Functions
OpenBase
CloseBase
RecCount
FieldCount
ReadRecord
WriteRecord
FieldNumber
GetStr
GetValue
IsMemoField
IsDigitalField
IsCurrentDeleted
IsDeleted
ClearRecord
ClearField
SetValue
MarkDeleted
RecallRecord
DeleteRecord
AppendRecord
InsertRecord
SortBase
RemoveSort
SetFilter
RemoveFilter
Pack
Zap
Write
Writeln
StopScript
GetFileType
GetRecordLength
GetFieldName
GetFieldType
GetFieldSize
GetFieldFloat
NewDatabase
AddField
CreateDatabase
CreateAndOpenDataBase
RecordToCSV
SetCodepage
ParamCount
ParamStr

Related Links
Help file
Screen shots
Video tutorials

Copyright © WhiteTown Software, 1996-2014 | Privacy policy | Site map