Lescasse Consulting
 Home    Company    News    Prices    Download    Buy    Forums   
Read Me
Buy
Forums
Resume
AntiSpam 1.2
wBackup 1.11
NetAccess 2.0
Visual APL 1.0 
APL+Win 8.0 
APL+Win Products 
APL+Win Objects™ 
APL+Win Training 
APL+Web Services
APL+Web Component 
APL+ History
Dyalog.Net Tutorial
Conferences 
Powerpoint
White Papers
Web Hosting
References
Links
 
APL+Win Objects™ 6.0

TADO5
TADO5 Tutorial
TAPLDraw5
TAPLEdit5
TAPLSession5
TAbale5
TAboutBox5
TAccess5
TAgent5
TBlatMail5
TButton5
TCDO5
TCRC5
TCancelButton5
TCheck5
TCheckGroup5
TChildForm5
TChooseColor5
TChooseFont5
TClipBoard5
TClock5
TCodeStats5
TColors5
TCombo5
TComboDrive5
TComboFilter5
TComboList5
TComboTree5
TCommandBar5
TCommandButton5
TControlClass5
TCueCard5
TDHTML5
TDHTMLEditor5
TDateTime5
TDateTimeFr5
TDates5
TDemoHandlers5
TDisplay5
TDOS5
TDualSelect5
TEdit5
TEditAmount5
TEditDir5
TEditEnter5
TEditFile5
TEditGrid5
TEditList5
TEditListview5
TEditMenu5
TEditNum5
TEditSelect5
TEditSpin5
TEmail5
TError5
TExampleForm5
TExcel5
TExcel5 Tutorial
TFindReplace5
TFOne5
TFTP5
TFTP5 Tutorial
TFileCompare5
TFileMenu5
TFileMenuDef5
TFlatButton5
TForm5
TFormClass5
TFormEditor5
TFrame5
TGetDir5
TGif5
TGifForm5
TGifWb5
TGoMenu5
TGraphX5
TGrid5
TGridDisplay5
TGridPrint5
TGUID5
THLine5
THTML5
THTML5 Tutorial
THTTP5
THelp5
THelpMenu5
TImagelist5
TInfo5
TIniFile5
TInstall5
TInternet5
TJpg5
TJpgWb5
TLabel5
TList5
TListview5
TLock5
TLogs5
TMAPI5
TMath5
TMDIForm5
TMSOutlook5
TMaskEdit5
TMedia5
TMenu5
TMessage5
TModalCall5
TMsgBox5
TNavigator5
TNetwork5
TNonVisualClass5
TODBC5
TOKButton5
TObject5
TOpenFile5
TOption5
TOptionGroup5
TOutlook5
TOutlookMail5
TOWCSpread5
TPDF5
TPFKeys5
TPage5
TPassword5
TPicture5
TPing5
TPopupMenu5
TPowerpoint5
TPowerpoint5 Tutorial
TPrinter5
TProgress5
TProgressDlg5
TQuestion5
TRegistry5
TRegistryKey5
TResource5
TRichEdit5
TSPX5
TSQLDMO5
TScheduler5
TScroll5
TSelector5
TSpinner5
TSplitter5
TStatus5
TStopWatch5
TTest5
TTestError5
TTextFile5
TTimer5
TTip5
TTipForm5
TTLI5
TToolBar5
TToolbox5
TToolsMenu5
TTrackbar5
TTranslate5
TTree5
TVLine5
TViewMenu5
TWebBrowser5
TWebServer5
TWebSite5
TWebSiteNet5
TWinMenu5
TWord5
TYesNo5
    Visits:  3075 (30 on line) Last Update: Dec 5, 2003  
    TOWCSpread5      Printer Friendly  
 
Description   Inheritance   Example   Properties   Methods
 
 Description

TOWCSpread5 shows how to work with the OWC Web Component Spreadsheet control

The OWC Web Component Spreadsheet control is a simplified version of Excel intended to be used on Web Sites as a spreadsheet control.  However it can be used, embedded in an APL+Win Windows application.

See also: TExcel5

Description   Inheritance   Example   Properties   Methods
 
 Inheritance

Inherits from:  TObject5

Description   Inheritance   Example   Properties   Methods
 
 Example
 
 

The above form is generated by the following APL+Win Objects™ code:


      'ff'Œwi'*Create' 'TForm5'('*caption' 'TOWCSpread5 Demo')('*size'300 400)
      'ff'Œwi'*.owc.Create' 'TOWCSpread5'('wherelc'0 0'>>' '>>')('attach'1 2 3 4)
      'ff'Œwi'.owc.Add'1(1 1)(10 10½'APL'1 2 3 'is' 3.14158 'the' 'best' 'language'10)
      'ff'Œwi'.owc.range'1'B3:D8'
      'ff'Œwi'.owc.backcolor'(256 152 256)
      'ff'Œwi'.owc.border'1 3
      'ff'Œwi'.owc.bordercolor'255
      'ff'Œwi'.owc.Get'
  APL 1 2 3 is 3.14158 the best language 10        
  APL 1 2 3 is 3.14158 the best language 10        
  APL 1 2 3 is 3.14158 the best language 10        
  APL 1 2 3 is 3.14158 the best language 10        
  APL 1 2 3 is 3.14158 the best language 10        
  APL 1 2 3 is 3.14158 the best language 10        
  APL 1 2 3 is 3.14158 the best language 10        
  APL 1 2 3 is 3.14158 the best language 10        
  APL 1 2 3 is 3.14158 the best language 10        
  APL 1 2 3 is 3.14158 the best language 10        

      'ff'Œwi'.owc.GetNum'
  0 1 2 3 0 3.14158 0 0 0 10         
  0 1 2 3 0 3.14158 0 0 0 10         
  0 1 2 3 0 3.14158 0 0 0 10         
  0 1 2 3 0 3.14158 0 0 0 10         
  0 1 2 3 0 3.14158 0 0 0 10         
  0 1 2 3 0 3.14158 0 0 0 10         
  0 1 2 3 0 3.14158 0 0 0 10         
  0 1 2 3 0 3.14158 0 0 0 10         
  0 1 2 3 0 3.14158 0 0 0 10         
  0 1 2 3 0 3.14158 0 0 0 10         

      'ff'Œwi'.owc.range'1'B3:D8'
      'ff'Œwi'.owc.value'(2 2½100 200 300 400)
      'ff'Œwi'.owc.range'1'C6:D7'
      'ff'Œwi'.owc.value'(2 2½'APL.Net' 'is' 'coming' 'soon!')
      'ff'Œwi'.owc.backcolor'(255 112 112)
      'ff'Œwi'.owc.border'1 4
      'ff'Œwi'.owc.GetNum'1'B3:D8'
         100         200 ¯2146826246
         300         400 ¯2146826246
 ¯2146826246 ¯2146826246 ¯2146826246
 ¯2146826246           0           0
 ¯2146826246           0           0
 ¯2146826246 ¯2146826246 ¯2146826246

      'ff'Œwi'.owc.fontbold'1
      'ff'Œwi'.owc.fontitalic'1
      'ff'Œwi'.owc.fontname' 'Verdana'
      'ff'Œwi'.owc.fontsize'18
      'ff'Œwi'.owc.AutoFit'1
      'ff'Œwi'DemoShow'
      'ff'Œwi'*size'350 580
      Œwself„'ff.owc'
 
Description   Inheritance   Example   Properties   Methods
 
 Properties
 
activecell    
Description:  Get or set the current active cell 
Syntax:  {cell„'} 'obj' Œwi 'activecell' {cell} 
cell:  a range with a single cell 
Example: 
      'ee' Œwi 'activecell' 'M54' 
      'ee' Œwi 'activecell' 
backcolor    
Description:  Get or Set the background color for the selected range cells 
Syntax:  'obj' Œwi 'backcolor'color 
color:  (256ƒred green blue) [red,green,blue between 0 and 255] 
   or:  (red green blue) 
book    
Description:  Activates the specified workbook 
Syntax:  {result'} 'obj' Œwi 'book' {book} 
         rc'obj' Œwi 'workbook'workbook 
book:  an existing workbook number or name 
result:  return code (0=success; 1=failure) when settingthe property 
         name of active worksheet when getting the property 
Example: 
      'ee' Œwi 'book' 
Book1 
      'ee' Œwi 'book' 'dvd.xls' 
      'ee' Œwi 'book' 
Dvd.xls 
Note: setting this property resets the .wkbk and .wksht TExcel5 internal objects 
bookname    
Description:  Get the name of the currently active workbook 
Syntax:  bookname„'obj' Œwi 'book' 
bookname:  name of currently active workbook 
Example: 
      'ee' Œwi 'bookname' 
Book1 
booknames    
Description:  Return the names of the workbooks (read-only property) 
Syntax:  booknames„'obj' Œwi 'booknames' 
Example: 
      'ee' Œwi 'booknames' 
border    
Description:  Set or Reset the border of the current selected range (Write-Only property) 
Syntax:  'obj' Œwi 'border'type thickness 
type:       line type (1 to 5) 
thickness:  line thickness (1 to 4) 
bordercolor    
Description:  Get or Set the cell border color 
Syntax:  'obj' Œwi 'bordercolor'color 
 color: a 3-element vector representing RGB values 
class    
Description:  Return current object class 
Syntax:  class„'obj' Œwi 'class' 
columnwidth    
Description:  Get or Set the column width for columns in the specified range 
Syntax:  {colwidths„'} 'obj' Œwi 'columnwidth' {colwidths} 
colwidths: an integer scalar or vector of column width(s) in points 
Note: does not work with multiple ranges, except if <colwidths> is a scalar 
Example: 
      'ee' Œwi '*Set' ('range'2'E1') ('columnwidth'12) 
      'ee' Œwi '*Set' ('range'2'A1:E1') ('columnwidth'12)       © same as: ('columnwidth'12 12 12 12 12) 
      'ee' Œwi '*Set' ('range'2'A1:E1') ('columnwidth'12 3)     © same as: ('columnwidth'12 3 12 3 12) 
      'ee' Œwi '*Set' ('range'2'A1:E1;G1:J1') ('columnwidth'3)  © same as: ('columnwidth'3 3 3 3 3 3 3 3 3) 
      'ee' Œwi '*Set' ('range'2'A1:E1;G1:J1') ('columnwidth'3 4 5 6 7 20 21 22 23)  © does not work ok 
columnwidthpix    
Description:  Get or Set the column width for columns in the specified range, in pixels 
Syntax:  {colwidths„'} 'obj' Œwi 'columnwidthpix' {colwidths} 
colwidths: an integer scalar or vector of column width(s) in pixels 
Note: does not work with multiple ranges, except if <colwidths> is a scalar 
Example: 
      'ee' Œwi '*Set' ('range'2'E1') ('columnwidthpix'12) 
      'ee' Œwi '*Set' ('range'2'A1:E1') ('columnwidthpix'12)       © same as: ('columnwidthpix'12 12 12 12 12) 
      'ee' Œwi '*Set' ('range'2'A1:E1') ('columnwidthpix'12 3)     © same as: ('columnwidthpix'12 3 12 3 12) 
      'ee' Œwi '*Set' ('range'2'A1:E1;G1:J1') ('columnwidthpix'3)  © same as: ('columnwidthpix'3 3 3 3 3 3 3 3 3) 
      'ee' Œwi '*Set' ('range'2'A1:E1;G1:J1') ('columnwidthpix'3 4 5 6 7 20 21 22 23)  © does not work ok 
fontbold    
Description:  Get or Set the fontbold property for the selected range 
Syntax:  {boolean„'} 'obj' Œwi 'fontbold' {boolean} 
boolean:  1=make the font bold  0=don't 
Example: 
      'ee' Œwi 'fontbold'255 0 204 
fontcolor    
Description:  Get or Set the Font color for the selected range cells 
Syntax:  {color„'} 'obj' Œwi 'fontcolor' {color} 
color:  (256ƒred green blue) [red,green,blue between 0 and 255] 
    or  (red green blue)" 
Example: 
      'ee' Œwi 'fontcolor'255 0 204 
fontitalic    
Description:  Get or Set the fontitalic property for the selected range 
Syntax:  {boolean„'} 'obj' Œwi 'fontitalic' {boolean} 
boolean:  1=make the font italics  0=don't 
Example: 
      'ee' Œwi 'fontitalic'1 
fontname    
Description:  Get or Set the font for the selected range 
Syntax:  {name„'} 'obj' Œwi 'fontname' {name} 
name:  a character string (the font name) 
Example: 
      'ee' Œwi 'fontname' 'Arial' 
fontsize    
Description:  Get or Set the font size for the selected range 
Syntax:  {size„'} 'obj' Œwi 'fontsize' {size} 
size:  an integer (the font size) 
Example: 
      'ee' Œwi 'fontsize'14 
fontunderline    
Description:  Get or Set the FontUnderline property for the selected range 
Syntax:  {value„'} 'obj' Œwi 'fontunderline'value 
value:  ¯4142=xlUnderlineStyleNone 
            2=xlUnderlineStyleSingle 
        ¯4119=xlUnderlineStyleDouble 
            4=xlUnderlineStyleSingleAccounting 
            5=xlUnderlineStyleDoubleAccounting 
Example: 
      'ee' Œwi 'fontunderline'2 
format    
Description:  Set the number format for all number in the current selected range 
Syntax:  {formatstring„'} 'obj' Œwi 'format' {formatstring} 
formatstring:  a valid Excel number format string (see Custom in Format/Cells dialog) 
Note: number formats are sensible to the International settings of your computer 
Example: 
      'ee' Œwi 'Format' '$#,###.00' 
formula    
Description:  Applies the specified formula to the selected range 
Syntax:  'obj' Œwi 'formula'sheet range formula 
sheet:  a sheet number or name or 0 or '' to specify active worksheet 
range:  a range of cells in A1:F8 notation or '' to specify the current range 
formula:  a valid Excel formula or formulae array 
Examples: 
      'ee' Œwi 'formula'2 'C4' '=C2+C3' 
      'ee' Œwi 'formula'2 'C4' 
=C2+C3 
      'ee' Œwi 'formula'2 'C4:E5' '=C2+C3' 
      'ee' Œwi 'formula'2 'C4:E5' 
=C2+C3 =D2+D3 =E2+E3 
=C3+C4 =D3+D4 =E3+E4 
Note that you can also pass an array of formulae as in the next example: 
      'ee' Œwi 'formula'2 'C4:E5' (2 3½'=C2+C3' '=C2+D2' '=D2+E2') 
      'ee' Œwi 'formula'2 'C4:E5' 
 =C2+C3 =D2+E2 =F2+G2 
 =C3+C4 =D3+E3 =F3+G3 
This way you can set different formulae for each cell in just one APL 
instruction, but be careful about the cell translations made by Excel! 
gridlines    
Description:  Get or Set grid lines for the specified range 
Syntax:  'obj' Œwi 'gridlines'gridlines{gridlinecolor} 
gridlines: a boolean scalar 
gridlinecolor: a color (specified as 256ƒR G B) 
Example: 
      'ee' Œwi 'gridlines'0       © remove grid lines for printing 
      'ee' Œwi 'gridlines'1 
halign    
Description:  Get or Set horizontal alignment for the selected range 
Syntax:  'obj' Œwi 'halign'halign 
halign:  'right' 'left' 'justify' 'center' 'general' 'fill' or 'centeracross' 
Example: 
      'ee' Œwi '*Set' ('range'1'A4:D8') ('halign' 'right') 
help    
Example: 
0 0½'ff' Œwi '*Create' 'TForm5' ('*caption' 'TOWCSpread5 Demo') ('*size'300 400) 
0 0½'ff' Œwi '*.owc.Create' 'TOWCSpread5' ('wherelc'0 0'>>' '>>') ('attach'1 2 3 4) 
0 0½'ff' Œwi '.owc.Add'1(1 1) (10 10½'APL'1 2 3 'is' 3.14158 'the' 'best' 'language'10) 
0 0½'ff' Œwi '.owc.range'1'B3:D8' 
0 0½'ff' Œwi '.owc.backcolor' (256 152 256) 
0 0½'ff' Œwi '.owc.border'1 3 
0 0½'ff' Œwi '.owc.bordercolor'255 
    'ff' Œwi '.owc.Get' 
    'ff' Œwi '.owc.GetNum' 
0 0½'ff' Œwi '.owc.range'1'B3:D8' 
0 0½'ff' Œwi '.owc.value' (2 2½100 200 300 400) 
0 0½'ff' Œwi '.owc.range'1'C6:D7' 
0 0½'ff' Œwi '.owc.value' (2 2½'APL.Net' 'is' 'coming' 'soon!') 
0 0½'ff' Œwi '.owc.backcolor' (255 112 112) 
0 0½'ff' Œwi '.owc.border'1 4 
    'ff' Œwi '.owc.GetNum'1'B3:D8' 
0 0½'ff' Œwi '.owc.fontbold'1 
0 0½'ff' Œwi '.owc.fontitalic'1 
0 0½'ff' Œwi '.owc.fontname' 'Verdana' 
0 0½'ff' Œwi '.owc.fontsize'18 
0 0½'ff' Œwi '.owc.AutoFit'1 
0 0½'ff' Œwi 'DemoShow' 
0 0½'ff' Œwi '*size'350 580 
Œwself„'ff.owc' 
language    
Description:  Return the Excel language LCIDs (Read-only) for Install, GUI and Help 
Syntax:  countryID„'obj' Œwi 'language' 
countryID: [1]=the install language 
           [2]=the user interface language 
           [3]=the Help language 
           (1033=USA, 1036=France, 1053=Sweden, ...) 
Example: 
      'ee' Œwi 'language' 
1033 1033 1033                             © ELE10aug05 33…1033 1033 1033 
Note: the complete list of International LCID can be found at: 
http://krafft.com/scripts/deluxe-calendar/lcid_chart.htm 
lastcell    
Description:  Return the last used cell coordinates in RC format in the specified sheet (read-only) 
Syntax:  lastrowcol„'obj' Œwi 'lastcell' {sheet} 
sheet:  a sheet number or name 
If <sheet> is not specified, returns last column in Active Sheet 
Example: 
      'ee' Œwi 'lastcell'3     © return (row,col) of last cell in sheet 3 
5 4 
lastcol    
Description:  Return the last used column number in the specified sheet (read-only) 
Syntax:  lastcol„'obj' Œwi 'lastcol' {sheet} 
sheet:  a sheet number or name 
Note: If <sheet> is not specified, returns last column in Active Sheet 
Example: 
      'ee' Œwi 'lastcol'1                © returns last column in sheet 1 
4 
lastrow    
Description:  Return the Last used row number in the sheet (read-only) 
Syntax:  lastrow„'obj' Œwi 'lastrow' {sheet} 
sheet:  a sheet number or name 
If <sheet> is not specified, returns last row in Active Sheet 
Example: 
      'ee' Œwi 'lastrow'2                © return last row in sheet 2 
listseparator    
Description:  Returns the List Separator to be used in specifying for example multiple ranges 
Syntax:  listseparator„'obj' Œwi 'listseparator' 
listseparator:  the character which serves as a list separator for Excel (; or ,) 
Example: 
      'ee' Œwi 'listseparator' 
loaddelim    
Description:  If reading a text file, use this to specify the delimiter 
Syntax:  'obj' Œwi 'loaddelim' {delim} 
delim: desired delimiter (allowed values:   Œtcht  ','  ' '   ';') 
Example: 
      'obj' Œwi 'loaddelim' ',' 
name    
Description:  Get or Set a name for the current range object 
Syntax:  {name„'} 'obj' Œwi 'Name' {name} 
name: a character string (the range name) 
Example: 
      'ee' Œwi 'name' 'Product1' 
names    
Description:  Returns the names of all named cells in the active workbook 
Syntax:  names„'obj' Œwi 'names' 
names:  a vector of character vectors (the cell names) 
ontop    
Description:  Get or Set the ontop property specifying if Excel must stay on top of all other windows or not 
Syntax: {boolean„'} 'obj' Œwi 'ontop' {boolean} 
boolean:  1=Excel is made topmost; 0=it is not 
Example: 
      'ee' Œwi 'ontop'1 
range    
Description:  Get or Create a range of cells in the current sheet 
Syntax:  {sheetrange„'} 'obj' Œwi 'range' {sheet range} 
sheet:  a sheet number or sheet name or 0 or Ð for active sheet 
range:  a range of cells specified as for example: 'A3:B12' 
    or  a range of cells specified as (startrow startcol nbrows nbcols) 
sheetrange: a 2-element vector: (sheet number) (range) 
Example: 
      'ee' Œwi 'range'2'A3:B12' 
      'ee' Œwi 'range'1 3 1 2 12 
      'ee' Œwi 'range'1(3 1 2 12) 
rangename    
Description:  Get or Set a name for a given range in a given sheet 
Syntax:  {name„'} 'obj' Œwi 'rangename'sheet range{name} 
sheet:  a sheet number or name or '' for the current sheet 
range:  a range of cells specified as for example: 'A3:B12' 
    or  a range of cells specified as (startrow startcol nbrows nbcols) 
name: a character string (the range name) 
Example: 
      'ee' Œwi 'rangename'1'A3:B6' 'test'    © set a name for range Q3:B6 in sheet 1 
rowheight    
Description:  Get or Set the row height for the specified range rows 
Syntax:  {rowheights„'} 'obj' Œwi 'rowheight' {rowheights} 
rowheights: an integer scalar or vector of row height(s) in points 
Example: 
      'ee' Œwi '*Set' ('range'2'E1') ('rowheight'12) 
      'ee' Œwi '*Set' ('range'2'A1:A5') ('rowheight'12)       © same as: ('rowheight'12 12 12 12 12) 
      'ee' Œwi '*Set' ('range'2'A1:A5') ('rowheight'12 3)     © same as: ('rowheight'12 3 12 3 12) 
rowheightpix    
Description:  Get or Set the row height for the specified range rows in pixels 
Syntax:  {rowheights„'} 'obj' Œwi 'rowheightpix' {rowheights} 
rowheights: an integer scalar or vector of row height(s) in pixels 
Example: 
      'ee' Œwi '*Set' ('range'2'E1') ('rowheightpix'12) 
      'ee' Œwi '*Set' ('range'2'A1:A5') ('rowheightpix'12)       © same as: ('rowheightpix'12 12 12 12 12) 
      'ee' Œwi '*Set' ('range'2'A1:A5') ('rowheightpix'12 3)     © same as: ('rowheightpix'12 3 12 3 12) 
screenupdating    
Description:  Get or set the ability to redraw the Excel sheet 
Syntax:  {boolean„'} 'obj' Œwi 'screenupdating' {boolean} 
boolean:  1=Excel sheet is updated at each change  0=it is not 
Note:  use 'screenupdating'0   before a set of changes to the Excel 
       sheet to significantly speed up the process.  Don't forget 
       to reset screenupdating to 1 at then end or no changes 
       will occur to the sheet 
Example: 
      'ee' Œwi 'screenupdating'0 
sheet    
Description:  Activate the specified worksheet in the current workbook 
Syntax:  {result„'} 'obj' Œwi 'sheet'sheet 
sheet:  worksheet number or name to activate in current workbook 
result:  return code (0=success; 1=failure) when setting the property 
         number of active worksheet when getting the property 
Note: setting this property resets the .wksht and .pgsetup TExcel5 internal objects 
Example: 
          'ee' Œwi 'sheet'2 
or: 
          'ee' Œwi 'sheet' 'Sheet2' 
sheetname    
Description:  Get or Set the active worksheet name 
Syntax:  {sheetname„'} 'obj' Œwi 'sheetname' {sheetname} 
sheetname:  a character string (the future active worksheet name} 
Example: 
      'ee' Œwi 'sheetname' 
Sheet1 
      'ee' Œwi 'sheetname' 'Feuille1' 
sheetnames    
Description:  Get all current Excel sheet names (read-only) 
Syntax:  res„'obj' Œwi 'sheetnames' 
sheetnames:  a nested vector of character vectors 
Example: 
      'ee' Œwi 'sheetnames' 
sscolumns    
Description:  Returns all Excel column names as a nested vector 
Syntax:  colnames„'obj' Œwi 'sscolumns' 
colnames:  a nested vector of the 256 Excel column names 
Example: 
     'ee' Œwi 'sscolumns' 
valign    
Description:  Get or Set vertical alignment for the selected range 
Syntax:  {valign„'} 'obj' Œwi 'valign' {valign} 
valign:  'top' 'center' 'bottom' 'general' 'fill' or 'centeracross' 
Example: 
      'ee' Œwi '*Set' ('range'1'A4:D4') ('valign' 'centeracross') 
value    
Description:  Get or Set the value for the currently active range 
Syntax:  {values„'} 'obj' Œwi 'Value' {values} 
values:  a scalar, vector or matrix of APL values 
Example: 
      'ee' Œwi 'value'                       © return values from the current range 
      'ee' Œwi 'value' (4 5½¼100)             © set values in the current range 
version    
Description:  Get the current Excel version number (including Build) (read-only property) 
Syntax:  version„'obj' Œwi 'version' 
version:  the current Excel version number 
Example: 
      'ee' Œwi 'version' 
visibletoolbar    
Description:  Show or Hide a given Excel toolbar 
Syntax:  {boolean}„'obj' Œwi 'visibletoolbar'boolean 
boolean:  1=show Excel Toolbar  0=hide it 
Example: 
      'ee' Œwi 'visibletoolbar'0            © hides OWC Spreadsheet toolbar 
Description   Inheritance   Example   Properties   Methods
 
 Methods
 
Add    
Description:  Set data to active workbook 
Syntax:  result'obj' Œwi 'Add'sheet startcell nestedmatrix {conversiontype} 
sheet: a sheet number or sheet name or 0 for Active Worksheet 
startcell:  (row column) or an Excel cell (example: 'B5') 
            or named_range                © LES6aug04 added 
nestedmatrix: a nested APL matrix 
conversiontype:  a numeric scalar or matrix of same shape as nestedmatrix 
  For conversiontype,use ScalarTypes as described below: 
  TypeNames  ScalarTypes ArrayTypes 
  ================================= 
  Empty                0 
  Null                 1 
  Short                2       8194 
  Long                 3       8195 
  Float                4       8196 
  Double               5       8197 
  Currency             6       8198 
  Date                 7       8199 
  String               8       8200 
  Object               9       8201 
  Error               10       8202 
  Boolean             11       8203 
  Variant             12       8204 
  DataObject          13       8205 
  Byte                17       8209 
Use: '#' Œwi 'VT'0 0   © to create a spreadsheet null value 
and: '#' Œwi 'VT'0 11  © to create a spreadsheet boolean 0 (=FALSE) value 
and: '#' Œwi 'VT'1 11  © to create a spreadsheet boolean 1 (=TRUE) value 
Note: creates a .rng TExcel5 internal object corresponding to written cells 
result:  4-elements nested vector such as: © ELE9aug04 added 
         [1]  cell coordinate (character vector) for next Add statement when appending below         © ELE9aug04 added 
         [2]  cell coordinate (character vector) for next Add statement when appending to the right  © ELE9aug04 added 
         [3]  cell coordinate (numeric vector) for next Add statement when appending below           © ELE9aug04 added 
         [4]  cell coordinate (numeric vector) for next Add statement when appending to the right    © ELE9aug04 added 
         Example showing the Add results:  © ELE9aug04 added 
      ]display 'ee' Œwi 'Add'1(3 3) (5 5½¼25) © ELE8aug04 added 
.-----------------.                       © ELE8aug04 added 
 .-..-..--..--.                        © ELE8aug04 added 
  C8  H3  8 3  3 8                         © ELE8aug04 added 
 '--''--''~--''~--'                        © ELE8aug04 added 
'¹-----------------'                       © ELE8aug04 added 
Example: 
    'ee' Œwi 'Add'0'A1' (3 3½'eric' 'lescasse' 'APL')  © install a 3 by 3 matrix of text cells in current sheet 
    'ee' Œwi 'Add'2'B3' (10 10½¼100) 
    'ee' Œwi 'Add'2(5 5) (2 2½'Eric' 'Lescasse' 'APL' '+Win') 
    'ee' Œwi 'Add'2(6 7) (3 2½'') 
     Now use a 4th argument to specify Long(=3), Currency(=6) and Date(=7) data types 
    'ee' Œwi 'Add'1(2 2) (36768+5 3½¼12) (5 3½3 6 7) 
    'ee' Œwi 'Add'1'Sales' (10 10½¼100)       © LES6aug04 added © where Sales is a named range in sheet 1 
AddFit    
Description:  Same as the Add method, but also runs AutoFit on rows and columns 
Syntax:  see Add 
Example: 
      'ee' Œwi 'AddFit'1(2 2) (3 3½('APL',Œtclf,'is by far',Œtclf,'the most powerful language') 'eric' 'lescasse' 'and soon a .Net language') 
AddSheet    
Description:  Add one or more worksheets to the active workbook 
Syntax:  rc„'obj' Œwi 'AddSheet'sheetbefore sheetafter nbsheets 
sheetbefore:  '' or name of sheet before which new sheets should be inserted 
sheetafter:  '' or name of sheet after which new sheets should be inserted 
nbsheets:  number of new sheets to insert 
Examples: 
      'ee' Œwi 'AddSheet' '' 'Sheet2' 2      © inserts 2 sheets after Sheet2 
      'ee' Œwi 'AddSheet' 'Sheet4' '' 1      © insert 1 sheet before Sheet4 
      'ee' Œwi 'AddSheet'                    © insert 1 sheet after last sheet 
AutoFit    
Description:  Changes the width of the columns in the range or the height of the rows in the range to achieve the best fit. 
Syntax:  'obj' Œwi 'AutoFit' {sheet{range}} 
sheet:  a sheet number or sheet name 
range:  a 4-element numeric vector (toprow leftcol bottomrow rightcol) 
    or  a cell range in A1:B5 format 
    or  '' to represent the currently defined range (which was may be defined in another sheet than the active one) 
If sheet not specified, AutoFit applies to the whole currently active worksheet 
If range not specified, AutoFit applies to the whole specified sheet 
If range is '', AutoFit applies to the currently defined range (maybe in another worksheet) in the specified sheet 
Examples: 
      'ee' Œwi 'AutoFit' 
      'ee' Œwi 'AutoFit'2 
      'ee' Œwi 'AutoFit'1(3 4 10 16) 
AutoFitCell    
Description:  Autofits a cell width and height according to its content 
Syntax:  'obj' Œwi 'AutoFitCell'sheet cell 
sheet:  a sheet number or sheet name 
cell:  a 2-element numeric vector (row col) 
    or  a cell A1 format 
Example: 
      'ee' Œwi 'AutoFitCell'1'F3' 
Clear    
Description:  Clears the entire worksheet or a specified range 
Syntax:  'obj' Œwi 'Clear' {sheet{range}} 
sheet:  a sheet number or name (default to ActiveSheet) 
range:  a range in 'A3:F10' format or in (toprow leftcol bottomrow rightcol) format 
Example: 
      'ee' Œwi 'Clear'                       © clears values & formating in the active sheet 
      'ee' Œwi 'Clear'2                      © clears values & formating in sheet 2 
      'ee' Œwi 'Clear'2'C4:D8'               © clears values & formating in range C4:D8 in sheet 2 
ClearFormats    
Description:  Clears cells formatting in the entire worksheet or a specified range 
Syntax:  'obj' Œwi 'ClearFormats' {sheet{range}} 
sheet:  a sheet number or name (default to ActiveSheet) 
range:  a range in 'A3:F10' format or in (toprow leftcol bottomrow rightcol) format 
Example: 
      'ee' Œwi 'ClearFormats'                © clears values & formating in the active sheet 
      'ee' Œwi 'ClearFormats'2               © clears values & formating in sheet 2 
      'ee' Œwi 'ClearFormats'2'C4:D8'        © clears values & formating in range C4:D8 in sheet 2 
CopySheet    
Description:  Copies a worksheet before or after a target sheet 
Syntax:  'obj' Œwi 'CopySheet'sourcesheet targetsheet {workbook} 
sourcesheet:  source sheet number 
targetsheet:  target sheet number 
              if target is negative copy before if positive after 
workbook:  name of target Excel workbook 
Note: VBA code: 
Sheets("TP 2003 Août").Select 
Sheets("TP 2003 Août").Copy Before:=Sheets(1) 
Sheets("TP 2003 Août").Select 
Sheets("TP 2003 Août").Copy Before:=Workbooks("Temps Passés 2003 THARREAU Olivier.XLS").Sheets(1) 
Example: 
      'ee' Œwi 'CopySheet'3 ¯1   © copy sheet 3 before sheet 1 in same workbook 
      'ee' Œwi 'CopySheet'1 1'Temps Passés 2003 THARREAU Olivier.XLS'    © copy sheet 1 after sheet 1 in another workbook 
DeleteAllNames    
Description:  Delete all names defined in the current workbook 
Syntax:  'obj' Œwi 'DeleteAllNames' 
Example: 
      'ee' Œwi 'DeleteAllNames' 
DeleteNames    
Description:  Delete the specified name(s) from the current workbook 
Syntax:  rc„'obj' Œwi 'DeleteNames'name 
name:  a range name 
rc:  return code: 0 if operation succeeded, 1 otherwise 
Example: 
      'ee' Œwi 'DeleteNames' 'apldos' 
DeleteSheet    
Description:  Deletes a sheet 
Syntax:  'obj' Œwi 'DeleteSheet' {sheet} 
sheet:  a sheet number or name 
        if sheet is '', deletes active worksheet 
Example: 
      'ee' Œwi 'DeleteSheet'8 
Get    
Description:  Reads APL nested array from Excel specified range 
Syntax:  result„'obj' Œwi 'Get' {sheet{location}} 
sheet: a sheet number or sheet name or 0 or '' for Active Worksheet 
location:  a 4-element numeric vector (toprow leftcol height width) 
       or  a cell range 
       or  '' (meaning return all active sheet cells) 
       or  0  (meaning current active range if any; default to all cells if none) 
result:  a nested matrix or a vector of nested matrices 
If sheet is omitted, Get returns a nested array with one nested matrix per existing sheet 
If range is omitted, Get returns all defined cells in the currently active worksheet 
Note: empty Excel cells are returned as empty character vectors in APL 
Example: 
      'ee' Œwi 'Get' 
      'ee' Œwi 'Get'2 
      'ee' Œwi 'Get'1'B2' 
      'ee' Œwi 'Get'2 2 3 10 12 
      'ee' Œwi 'Get'2(2 3 10 12) 
      'ee' Œwi 'Get'2'B2:C8'" 
      'ee' Œwi 'Get'0 0                      © returns content of current range in current sheet 
GetNum    
Description:  Same as Get but returns 0 for all character cells in the range 
Syntax:  result„'obj' Œwi 'GetNum' {sheet{location}} 
sheet: a sheet number or sheet name or 0 or '' for Active Worksheet 
location:  a 4-element numeric vector (toprow leftcol height width) 
       or  a cell range 
       or  '' (meaning return all active sheet cells) 
       or  0  (meaning current active range if any; default to all cells if none) 
result:  a nested matrix or a vector of nested matrices 
If sheet is omitted, Get returns a nested array with one nested matrix per existing sheet 
If range is omitted, Get returns all defined cells in the currently active worksheet 
Note: empty Excel cells are returned as empty character vectors in APL 
Example: 
      'ee' Œwi 'Get' 
      'ee' Œwi 'Get'2 
      'ee' Œwi 'Get'1'B2' 
      'ee' Œwi 'Get'2 2 3 10 12 
      'ee' Œwi 'Get'2(2 3 10 12) 
      'ee' Œwi 'Get'2'B2:C8'" 
      'ee' Œwi 'Get'0 0                      © returns content of current range in current sheet 
New     Description: Create a new instance of TOWCSpread5
Example:
      'obj' Œwi '*Create' 'TOWCSpread5'

UseClient    
Description:  Resizes the OWC Spreadsheet so that it uses the whole client area of its parent 
Description   Inheritance   Example   Properties   Methods
 
 This entire Web site has been dynamically generated by APL+Win Objects™ 6.0
 For all questions contact:  info@lescasse.com
 Copyright © 2003-2005 Lescasse Consulting. All rights reserved.