4D View Language Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
4D View® ______________________________________________________________________________________________________________________________________ Language Reference Windows® / Mac OS® 4D View® © 2002-2007 4D SAS / 4D Inc. All rights reserved. __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ 4D View - Language Reference Version 2004.6 for Windows® and Mac OS® Copyright © 2002-2007 4D SAS/4D, Inc. All rights reserved. ____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ The Software described in this manual is governed by the grant of license in the 4D Product Line License Agreement provided with the Software in this package. The Software, this manual, and all documentation included with the Software are copyrighted and may not be reproduced in whole or in part except for in accordance with the 4D Product Line License Agreement. 4D Write, 4D Draw, 4D View, 4th Dimension, 4D the 4D logo and 4D Server are registered trademarks of 4D, Inc. Microsoft and Windows are registered trademarks of Microsoft Corporation. Apple, Macintosh, Mac OS and QuickTime are trademarks or registered trademarks of Apple Computer, Inc. Mac2Win Software Copyright © 1990-2007, is a product of Altura Software, Inc. This product includes software developed by the Apache Software Foundation (http://www.apache.org/). 4th Dimension includes cryptographic software written by Eric Young ([email protected]) 4th Dimension includes software written by Tim Hudson ([email protected]). ACROBAT © Copyright 1987-2007, Secret Commercial Adobe Systems Inc. All rights reserved. ACROBAT is a registered trademark of Adobe Systems Inc. All other referenced trade names are trademarks or registered trademarks of their respective holders. Contents 1. Introduction.............................. 13 4D View Presentation .......................................................................... 15 Writing conventions.............................................................................16 4D View commands and constants.......................................................17 Using 4D View areas.............................................................................19 Accessing 4D View menu commands....................................................22 Cross-platform document management...............................................23 2. PV Current cell...........................25 PV Current cell, Introduction................................................................ 27 PV GET CURRENT CELL.........................................................................28 PV VALIDATE CURRENT CELL................................................................29 PV GET NEXT FREE CELL.......................................................................30 PV GOTO CELL.....................................................................................32 PV GOTO NEXT CELL........................................................................... 33 PV GET PREVIOUS ACTIVE CELL............................................................34 3. PV Area...................................... 37 PV Area, Introduction........................................................................... 39 PV New offscreen area..........................................................................40 PV DELETE OFFSCREEN AREA................................................................41 PV SET AREA PROPERTY........................................................................42 PV Get area property............................................................................53 PV BLOB TO AREA................................................................................ 54 PV Area to blob.................................................................................... 55 PV ON EVENT.......................................................................................56 PV Get on event method......................................................................60 PV ON COMMAND..............................................................................61 PV Get on command method...............................................................63 PV ON ERROR...................................................................................... 64 PV Get on error method.......................................................................66 PV GET LAST ERROR............................................................................. 67 4D View Language Reference 3 PV EXECUTE COMMAND.....................................................................69 PV SET COMMAND STATUS.................................................................70 PV GET COMMAND STATUS................................................................71 PV REDRAW..........................................................................................72 PV SCROLL AREA..................................................................................73 4. PV Borders................................. 75 PV Borders, Introduction...................................................................... 77 PV SET RANGE BORDER........................................................................78 PV SET BORDER STYLE..........................................................................80 PV GET BORDER STYLE.........................................................................82 5. PV Cell property........................ 85 PV Cell property, Introduction..............................................................87 PV SET CELL PROPERTY........................................................................ 88 PV SET RANGE PROPERTY.....................................................................96 PV Get cell property........................................................................... 104 PV Get range property........................................................................105 PV SET CELL NAME.............................................................................107 PV Get cell name................................................................................109 PV GET CELL NAME LIST.................................................................... 110 6. PV Cell value............................111 PV Cell value, Introduction................................................................. 113 PV Get cell value type.........................................................................114 PV SET CELL STRING VALUE................................................................115 PV Get cell string value.......................................................................117 PV SET CELL TEXT VALUE....................................................................118 PV Get cell text value..........................................................................119 PV SET CELL NUM VALUE...................................................................120 PV Get cell num value........................................................................ 121 PV SET CELL DATE VALUE...................................................................122 4 4D View Language Reference PV Get cell date value.........................................................................123 PV SET CELL TIME VALUE....................................................................124 PV Get cell time value.........................................................................125 PV SET CELL DATE TIME VALUE.......................................................... 126 PV GET CELL DATE TIME VALUE..........................................................127 PV SET CELL BOOLEAN VALUE............................................................128 PV Get cell boolean value...................................................................129 PV SET CELL PICTURE VALUE.............................................................. 130 PV Get cell picture value.....................................................................131 PV SET CELL VARIABLE........................................................................132 PV Get cell variable.............................................................................133 PV SET CELL FIELD..............................................................................134 PV GET CELL FIELD.............................................................................136 PV SET CELL FORMULA.......................................................................138 PV Get cell formula.............................................................................140 PV SET CELL CONTROL...................................................................... 141 PV GET CELL CONTROL..................................................................... 146 PV ARRAY TO CELLS........................................................................... 148 PV CELLS TO ARRAY........................................................................... 150 PV FIELD TO CELLS.............................................................................152 PV FIELDS LIST TO CELLS....................................................................154 PV