home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / downloads / 401065 / WPO11 / Data1.cab / _F726981717F14424A17C17DBE40B680F < prev    next >
Text File  |  2003-03-07  |  13KB  |  432 lines

  1. DatabaseQuery
  2.  
  3. Syntax
  4.  
  5. DatabaseQuery(Type_ As String, Name_ As String, QueryString_ As String, Destination_ As String)
  6.  
  7. PerfectScript Syntax
  8.  
  9. DatabaseQuery (Type?:String; Name?:String; QueryString?:String; Destination?:String)
  10.  
  11. Description
  12.  
  13. The {DatabaseQuery} macro sends the specified SQL statement to either ODBC or BDE and places the returned data in the specified block of cells.
  14.  
  15. Parameters
  16.  
  17. Type    Type of database to query: "Paradox", "ODBC", or "BDE (Borland Database Engine)".
  18.  
  19. Name    Name of the database. If the type is Paradox, the name must be a path. If the type is ODBC, the name is a Data Source Name (DSN) from the user's ODBC configuration. If the name is BDE, the name is an alias name from the user's IDAPI/BDE configuration.
  20.  
  21. QueryString    An SQL Statement.
  22.  
  23.  Destination    The destination block of cells where to send the result.
  24.  
  25. DATE
  26.  
  27. Syntax
  28.  
  29. Date()
  30.  
  31. Description
  32.  
  33. {DATE} is equivalent to pressing Ctrl+D, which lets users enter a date or time into the active cell.
  34.  
  35. You can enter a date in a cell without using Ctrl+D. Just type a date in one of Quattro Pro's date formats--for example, 6/1/95.
  36.  
  37. Example
  38.  
  39. {DATE}8/6/90~    enters 8/6/90 in the active cell as a date.
  40.  
  41. {DATE}{?}~    pauses to let the user enter a date, then enters that date into the active cell.
  42.  
  43. DbAlias
  44.  
  45. Syntax
  46.  
  47. DbAlias(type As _DbAlias_type_enum, Path As String)
  48.  
  49. PerfectScript Syntax
  50.  
  51. DbAlias (type:Enumeration {PRIV!; WORK!}; Path:String)
  52.  
  53. Description
  54.  
  55. {DbAlias} lets you specify a private directory to hold temporary files, or a working directory where external data tables are most likely to be found.
  56.  
  57. Parameters
  58.  
  59. WORK | PRIV    WORK to specify a Working directory; PRIV to specify a Private directory
  60.  
  61. Path    path for the Working directory or the Private directory
  62.  
  63. {DELETEMENU}
  64.  
  65. Syntax
  66.  
  67. DeleteMenu(MenuPath As String)
  68.  
  69. PerfectScript Syntax
  70.  
  71. DeleteMenu (MenuPath:String)
  72.  
  73. Description
  74.  
  75. {DELETEMENU} removes the menu specified by MenuPath from the menu system. See the description of {ADDMENU} for the syntax of MenuPath. Use {DELETEMENUITEM} to remove an individual menu item.
  76.  
  77. Example
  78.  
  79. {DELETEMENU "/File"} removes the File menu from the active menu system.
  80.  
  81. Parameters
  82.  
  83. MenuPath    Menu in the tree to delete; type a forward slash (/) followed by the menu name; for example, to delete the Edit menu, type /Edit.
  84.  
  85. Notes
  86.  
  87. ¿    You cannot delete menus between Edit and Tools on the menu bar. The area between these menu positions is reserved for context-sensitive menus that change depending on the active window. You can add menu items to menus between the Edit and Tools menus, but the new menu items will be swapped out of the menu when the context changes.
  88.  
  89. ¿    Changes made to the menu system using this command are not saved; they are lost when you exit Quattro Pro. Each time you run a macro containing {DELETEMENU}, the menu changes appear again.
  90.  
  91. ¿    To restore the original menu bar, use the macro command {SETMENUBAR} without an argument
  92.  
  93. {DELETEMENUITEM}
  94.  
  95. Syntax
  96.  
  97. DeleteMenuItem(MenuPath As String)
  98.  
  99. PerfectScript Syntax
  100.  
  101. DeleteMenuItem (MenuPath:String)
  102.  
  103. Description
  104.  
  105. {DELETEMENUITEM} removes the menu item specified by MenuPath from the menu system. Use {DELETEMENU} to remove entire menus from the active menu system.
  106.  
  107. Example
  108.  
  109. {DELETEMENUITEM "/Edit/Clear"} removes the Clear command from the Edit menu.
  110.  
  111. {DELETEMENUITEM "/Edit/<-"} removes the first item on the Edit menu.
  112.  
  113. Parameters
  114.  
  115. MenuPath    Menu item in the tree to delete; enter the sequence of menu items separated by forward slashes (/); you can use <- and -> to specify an item menu at the top or bottom of a menu, respectively. For example, /File/<- specifies the first item on the File menu. You can also use numbers to identify menu items. For example, /File/0 specifies the first item on the File menu (the ID numbers start at zero).
  116.  
  117. Notes
  118.  
  119. ¿    You can delete menu items from any menu, but if you change a context-sensitive menu (all menus between Edit and Tools on the menu bar), the change applies only to the menu in the active window. For example, suppose you use a macro to change the View menu when the notebook window is active. If you then open a chart window, the chart View menu appears--without the change. If you want the change to apply to that View menu as well, you must run the macro again.
  120.  
  121. ¿    Changes made to the menu system using this command are not saved; they are lost when you exit Quattro Pro. Each time you run a macro containing {DELETEMENUITEM}, the menu changes appear again.
  122.  
  123. ¿    To restore the original menu bar, use the macro command {SETMENUBAR} without an argument.
  124.  
  125. {DELVAR}
  126.  
  127. Syntax
  128.  
  129.  DelVar([VarName1 As String], [VarName])
  130.  
  131. PerfectScript Syntax
  132.  
  133. DelVar ([VarName1:String]; {[VarName:String]})
  134.  
  135. Description
  136.  
  137. {DELVAR} deletes unused named variables. Named variables are used to control OLE objects. OLE objects are released from control at the end of macro execution, but named variables remain until you exit Quattro Pro. You can delete the unused named variables to free an object assigned to that name, and then control the object using another macro.
  138.  
  139. Example
  140.  
  141. {DELVAR} deletes all named variables
  142.  
  143. {DELVAR calc} deletes a named variable calc
  144.  
  145. {DELVAR calc 0, calc 1, calc 3} deletes the named variables calc 0, calc 1, and calc 3.
  146.  
  147. For more details on using {DELVAR} and other OLE automation macro commands, Using OLE Automation Features.
  148.  
  149. Parameters
  150.  
  151. VarName    A named variable
  152.  
  153. {DESCR}
  154.  
  155. Syntax
  156.  
  157. DESCR(InBlock As String, OutBlock As String, [Grouped As String], [Labels_ As _DESCR_Labels__enum], [Summary_ As _DESCR_Summary__enum], [Largest As Integer], [Smallest As Integer], [Confidence As Double])
  158.  
  159. PerfectScript Syntax
  160.  
  161. DESCR (InBlock:String; OutBlock:String; [Grouped:String]; [Labels?:Enumeration {Yes!; No!}]; [Summary?:Enumeration {Yes!; No!}]; [Largest:Numeric]; [Smallest:Numeric]; [Confidence:Numeric])
  162.  
  163. Description
  164.  
  165. {DESCR} returns a table of descriptive statistics that characterize a sample. {DESCR} is equivalent to the Descriptive Statistics analysis tool.
  166.  
  167. Parameters
  168.  
  169. InBlock    One or more numeric cell values representing the input cells
  170.  
  171. OutBlock    Upper-left cell of the output cells
  172.  
  173. Grouped    "C" to group results by column or "R" to group results by row; "C" is the default
  174.  
  175. Labels    1 if labels are located in the first column or row of the input cells; 0 if the input cells do not contain labels; the default is 0
  176.  
  177. Summary    1 to display summary statistics; 0 to omit summary statistics; the default is 0
  178.  
  179. Largest    A value n which, if present, makes {DESCR} report the nth largest data point; if omitted, the largest data point is not reported
  180.  
  181. Smallest    A value n which, if present, makes {DESCR} report the nth smallest data point; if omitted, the smallest data point is not reported
  182.  
  183. Confidence    Confidence level of the mean; the default is 0.95
  184.  
  185. {DialogView}
  186.  
  187. Syntax
  188.  
  189. DialogView(Window As String)
  190.  
  191. PerfectScript Syntax
  192.  
  193. DialogView (Window:String)
  194.  
  195. Description
  196.  
  197. {DialogView} lets you edit an existing dialog box.
  198.  
  199. Parameters
  200.  
  201. Window    Dialog window to make active
  202.  
  203. {DialogWindow}
  204.  
  205. Syntax
  206.  
  207. {DialogWindow.Property}
  208.  
  209. Description
  210.  
  211. {DialogWindow} is equivalent to right-clicking the title bar of a dialog window to set its properties.
  212.  
  213. {DialogWindow} commands affect the active dialog window. The next table lists the possible settings for Property. To display a property description with syntax, choose that property in the following list:
  214.  
  215. Dimension
  216.  
  217. Disabled
  218.  
  219. Grid_Options
  220.  
  221. Name
  222.  
  223. Position_Adjust
  224.  
  225. Title
  226.  
  227. Value
  228.  
  229. {DialogWindow.Dimension}
  230.  
  231. Syntax
  232.  
  233. {DialogWindow.Dimension<Option>}
  234.  
  235. PerfectScript Syntax
  236.  
  237. DialogWindow_Dimension_Height (Height:Numeric)
  238.  
  239. DialogWindow_Dimension_Width (Width:Numeric)
  240.  
  241. DialogWindow_Dimension_X (XPos:Numeric)
  242.  
  243. DialogWindow_Dimension_Y (YPos:Numeric)
  244.  
  245. Description
  246.  
  247. {DialogWindow.Dimension} is equivalent to the dialog window property Dimension, which lets you move and resize the active dialog window. Each argument is specified in pixels. XPos and YPos specify the distance in pixels from the left side of the Quattro Pro window and bottom of the input line, respectively.
  248.  
  249. Example
  250.  
  251. The following macro command positions the active dialog window two pixels from the left edge of the Quattro Pro window and five pixels below the input line, and sets the width to 150 pixels and the height to 250 pixels.
  252.  
  253. {DialogWindow.Dimension "2,5,150,250"}
  254.  
  255. Options
  256.  
  257. {DialogWindow.Dimension "XPos, Ypos, Width, Height"}
  258.  
  259. {DialogWindow.Dimension.Height Height}
  260.  
  261. {DialogWindow.Dimension.Width Width}
  262.  
  263. {DialogWindow.Dimension.X XPos}
  264.  
  265. {DialogWindow.Dimension.Y YPos}
  266.  
  267. {DialogWindow.Disabled}
  268.  
  269. Syntax
  270.  
  271. DialogWindow_Disabled(Disable_ As _DialogWindow_Disabled_Disable__enum)
  272.  
  273. PerfectScript Syntax
  274.  
  275. DialogWindow_Disabled (Disable?:Enumeration {Yes!; No!})
  276.  
  277. Description
  278.  
  279. {DialogWindow.Disabled} disables (Yes) or enables (No) the active dialog box or Toolbar. This command works only when you view a dialog box or toolbar; it does not work when you edit one.
  280.  
  281. {DialogWindow.Grid_Options}
  282.  
  283. Syntax
  284.  
  285.  DialogWindow_Grid_Options(Settings As String)
  286.  
  287. PerfectScript Syntax
  288.  
  289. DialogWindow_Grid_Options (Settings:String)
  290.  
  291. Description
  292.  
  293. {DialogWindow.Grid_Options} sets the grid size of the active dialog window. Use GridSize to specify the distance between grid points in pixels; ShowGrid specifies whether the grid is visible; SnapToGrid specifies whether objects snap to the grid.
  294.  
  295. Example
  296.  
  297. The following macro sets the distance between grid points to 10, shows the grid, and enables it.
  298.  
  299. {DialogWindow.Grid_Options "10,Yes,Yes"}
  300.  
  301. {DialogWindow.Name}
  302.  
  303. Syntax
  304.  
  305.  DialogWindow_Name(Name As String)
  306.  
  307. PerfectScript Syntax
  308.  
  309. DialogWindow_Name (Name:String)
  310.  
  311. Description
  312.  
  313. {DialogWindow.Name} sets the name of the active dialog window. This name is used by macro commands, @functions, and link commands to identify the dialog box (or Toolbar).
  314.  
  315. {DialogWindow.Position_Adjust}
  316.  
  317. Syntax
  318.  
  319. DialogWindow_Position_Adjust(Settings As String)
  320.  
  321. PerfectScript Syntax
  322.  
  323. DialogWindow_Position_Adjust (Settings:String)
  324.  
  325. Description
  326.  
  327. {DialogWindow.Position_Adjust} specifies how the active dialog box resizes when the Quattro Pro window is resized. The arguments are equal to options in the Position Adjust dialog box; click here  for directions on using the Position Adjust property.
  328.  
  329. {DialogWindow.Title}
  330.  
  331. Syntax
  332.  
  333. DialogWindow_Title(Title As String)
  334.  
  335. PerfectScript Syntax
  336.  
  337. DialogWindow_Title (Title:String)
  338.  
  339. Description
  340.  
  341. {DialogWindow.Title} specifies the title that appears on the dialog box when the user is viewing it (the title does not appear when editing the dialog box).
  342.  
  343. {DialogWindow.Value}
  344.  
  345. Syntax
  346.  
  347.  DialogWindow_Value(String As String)
  348.  
  349. PerfectScript Syntax
  350.  
  351. DialogWindow_Value (String:String)
  352.  
  353. Description
  354.  
  355. {DialogWindow.Value} sets the initial settings of the dialog box (or Toolbar). You can use it with @COMMAND to find the current settings of the dialog box. String is a comma-separated list of settings. Each setting sets the initial value of one control. Control values appear in this list if their Process Value property is set to Yes. You can set the order of the settings while editing the dialog box.
  356.  
  357. Example
  358.  
  359. The following macro command sets the initial values of a dialog box with three controls. Each setting maps to one control.
  360.  
  361.     {DialogWindow.Value "25000,5,1st of month"}
  362.  
  363.  
  364.  
  365. {DLL}
  366.  
  367. Syntax
  368.  
  369. DLL(DLLName_FunctionName As String, [Argument])
  370.  
  371. PerfectScript Syntax
  372.  
  373. DLL (DLLName_FunctionName:String; {[Argument:String]})
  374.  
  375. Description
  376.  
  377. {DLL} runs a macro or returns a value from an add-in @function contained in a dynamic-link library file. The @function can have up to 16 arguments.
  378.  
  379. Example
  380.  
  381. This statement calls the @function AMPLITUDE, included in the DLL Math, with two selections as arguments:
  382.  
  383. {DLL Math.AMPLITUDE,A1..A10,B1..B10}
  384.  
  385. Parameters
  386.  
  387. DLLName    The name of a DLL file (if not already loaded)
  388.  
  389. FunctionName    The name of an @function contained in the DLL
  390.  
  391. Argument1,Argument2...    Arguments to the @function
  392.  
  393. {DLL.Load}
  394.  
  395. Syntax
  396.  
  397. DLL_Load(DLLName As String)
  398.  
  399. PerfectScript Syntax
  400.  
  401. DLL_Load (DLLName:String)
  402.  
  403. Description
  404.  
  405. {DLL.Load} loads a dynamic-link library (DLL) program. You can use {DLL.Load} to load a DLL containing add-in @functions or macros. When the DLL is loaded, you can reference add-in @functions contained in the DLL without typing the DLL name. Similarly, macros contained in the DLL become resident in memory.
  406.  
  407. You can use {DLL.Load} to define a startup macro in QPW.INI.
  408.  
  409. Example
  410.  
  411. {DLL.Load MYDLL} loads a DLL program named MYDLL
  412.  
  413. Parameters
  414.  
  415. DLLName    The name of a DLL file to load
  416.  
  417. {DraftViewGoto}
  418.  
  419. Syntax
  420.  
  421. DraftViewGoto()
  422.  
  423. Description
  424.  
  425. Switches from either the Objects Sheet or the sheet in Page View mode to Draft View.
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.