Unit Wrdbasic

Classes

Functions

wbAtEndOfDocument -
wbAtStartOfDocument -
wbCharLeft -
wbCharRight -
wbCountWindows -
wbDoubleUnderline -
wbEditClear -
wbEditGoTo -
wbEditPaste - example of a non-dialog command
wbFileClose -
wbFileCloseAll -
wbFileName -
wbFileNew -
wbFileOpen - example of a dialog command
wbFileSave -
wbFileSaveAs -
wbFileTemplates -
wbFormatFontsim -
wbGetDocumentVar -
wbGetSelEndPos -
wbGetSelPos -
wbGetSelStartPos -
wbHidden -
wbInsert -
wbInt - example of a function returning a shortstring
wbSelectCurWord -
wbSelection -
wbsetDocumentDirty -
wbSetDocumentVar - wrong - check typing!
wbSetSelRange -
wbShowall - short font method
wbUnderline -

Types

Constants

wNoChange

Variables


Functions


function wbAtEndOfDocument:boolean;


function wbAtStartOfDocument:boolean;


function wbCharLeft(i:integer; s:boolean):boolean;


function wbCharRight(i:integer; s:boolean):boolean;


function wbCountWindows:integer;


function wbDoubleUnderline:boolean;


function wbEditClear(i:integer; o:boolean):boolean;


FUNCTION wbEditGoTo(dest: shortstring) : Boolean;


function wbEditPaste:boolean;

example of a non-dialog command

function wbFileClose(saveoption:integer):boolean;


function wbFileCloseAll(Saveoption:integer):boolean;


function wbFileName:shortstring;


function wbFileNew(template:shortstring; isdoc:boolean):boolean;


Function wbFileOpen(Fname:shortstring; ConfirmConversions,readonly,AddtoMru,revert:boolean; passworddoc, passworddot, writepasswordDoc, WritePasswordDot:shortstring):boolean;

example of a dialog command

function wbFileSave:boolean;


function wbFileSaveAs(fname:shortstring; format:integer; lockAnnot,AddtoMru,RecReadonly, EmbedFonts,NatPicFmt:boolean; Password,writePassword:shortstring):boolean;


function wbFileTemplates(Template:shortstring; LinkStyles:integer):boolean;


function wbFormatFontsim(points,underline,bold,italic,hidden:integer; font:shortstring):boolean;


Function wbGetDocumentVar(key:shortstring):shortstring;


function wbGetSelEndPos:longint;


function wbGetSelPos(var s,e:longint):boolean;


function wbGetSelStartPos:longint;


function wbHidden:boolean;


FUNCTION wbInsert(txt : shortstring) : Boolean;


FUNCTION wbInt(n : Double; VAR rslt : Integer) : Boolean;

example of a function returning a shortstring

function wbSelectCurWord:boolean;


FUNCTION wbSelection: shortstring;


function wbsetDocumentDirty(isdirty:boolean):boolean;


Function wbSetDocumentVar(key,value:shortstring):boolean;

wrong - check typing!

function wbSetSelRange(s,e:longint):boolean;


function wbShowall(c:boolean):boolean;

short font method

function wbUnderline:boolean ;


Types


Constants

wNoChange = -1

pascal equivalents for wordbasic statements

Variables