Difference between revisions of "VS:AddWSColumnOperator"

From Vectorworks Developer
Jump to: navigation, search
m (Reverted edits by Ptr (talk) to last revision by Root)
 
Line 50: Line 50:
 
All operators = -1<BR>
 
All operators = -1<BR>
 
Sort operator = 0<BR>
 
Sort operator = 0<BR>
Summarise operator = 1
+
Summarize operatory = 1</remark>
 
+
(2018-12-30 - Peter Vandewalle): To add a sum operator, first add all operators and then remove the sort operator and the summarise operator:
+
==== Vectorscript ====
+
<code lang="pas">
+
AddWSColumnOperator(hWS, 1, 1, -1);
+
RemoveWSColumnOperator(hWS, 1, 1, 0);
+
RemoveWSColumnOperator(hWS, 1, 1, 1);
+
</code>
+
==== Python ====
+
<code lang="py">
+
vs.AddWSColumnOperator(hWS, 1, 1, -1)
+
vs.RemoveWSColumnOperator(hWS, 1, 1, 0)
+
vs.RemoveWSColumnOperator(hWS, 1, 1, 1)
+
</code>
+
</remark>
+
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
Line 71: Line 56:
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
<seeAlso>
+
<seeAlso></seeAlso>
VS Functions:
+
* [[VS:RemoveWSColumnOperator| RemoveWSColumnOperator]]
+
</seeAlso>
+
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------

Latest revision as of 10:33, 2 January 2019

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix


Description

Adds database column operator to specified column.
PROCEDURE AddWSColumnOperator(
worksheet  :HANDLE;
databaseRow  :INTEGER;
column  :INTEGER;
operatorType  :INTEGER);
def vs.AddWSColumnOperator(worksheet, databaseRow, column, operatorType):
    return None

Parameters

worksheet HANDLE Handle to worksheet.
databaseRow INTEGER Database row to be queried.
column INTEGER Column to be queried.
operatorType INTEGER Operator type.

Remarks

Operator type constants:

All operators = -1
Sort operator = 0
Summarize operatory = 1

Version

Availability: from Vectorworks 2012
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox