4D v18.2 View Pro: Code Examples

Hello
Are there programming examples to the view pro commands?

how can I get the content range (not the selection, but the used range of the content). (count Cols and rows).

… give me the range of the used cells… into $maxCol and $maRow (how can I get this values)
$cells:=VP Cells(“myView”;0;0;$maxCol;$maxRow)

Regards, Oliver>Product :4D - 4D Server

OS : Mac OS X

Hello,

: Oliver BRODWOLF

Are there programming examples to the view pro commands?
You can find HDI in the 4d blog:https://blog.4d.com/tag/4d-view-pro/

: Oliver BRODWOLF

how can I get the content range (not the selection, but the used
range of the content). (count Cols and rows).
total number of columns: https://doc.4d.com/4Dv18R2/4D/18-R2/VP-Get-column-count.301-4833127.en.htmlVP Get column count >
total number of rows: https://doc.4d.com/4Dv18R2/4D/18-R2/VP-Get-row-count.301-4833149.en.htmlVP Get row count >

: Oliver BRODWOLF

$cells:=VP Cells(“myView”;0;0;$maxCol;$maxRow)
If you need create a range with all your cell, just use:
<code 4D>
$cells:=VP All (“ViewProArea”)
</code 4D>

Could you explain more about what you are trying to do with this range?