File: Test.xba

package info (click to toggle)
libreoffice 1%3A4.3.3-2%2Bdeb8u7~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 2,687,712 kB
  • sloc: cpp: 4,024,069; java: 364,016; xml: 216,714; ansic: 74,602; perl: 34,443; python: 30,231; yacc: 12,179; makefile: 8,973; objc: 8,923; sh: 8,742; cs: 6,594; lex: 2,218; asm: 1,472; pascal: 925; awk: 807; php: 104; csh: 40; sed: 5
file content (33 lines) | stat: -rw-r--r-- 1,126 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Test" script:language="StarBasic">Option Explicit
&apos;Option Compatible

Sub Main
	&apos;Application._RootInit()
	_A2B_.CalledSub = &quot;&quot;
	Application.SysCmd(acSysCmdRemoveMeter)
Dim a as variant, b as variant, c as variant, d as variant, i as integer, s as string,f as variant, h as variant, j as long, k as integer, l as integer, sFile As String
Dim lTime1 as Long, lTime2 as Long
	lTime1=getsystemticks()
&apos;	TraceConsole()
	_ErrorHandler(False)
	traceconsole()
	exit sub
	CurrentDb().CloseAllrecordsets()
	Set a = CurrentDb().TableDefs(&quot;Alltypes&quot;)
	Set b = a.OpenRecordset( , , dbreadOnly)
Dim vVar() As Variant
	Set vVar = b.GetRows(1000)
	b.mClose()
	DebugPrint UBound(vVar, 1), UBound(vVar, 2)
	For i = 0 To UBound(vVar, 2)
		For j = 0 To UBound(vVar, 1)
			DebugPrint i, j, vVar(j, i)
		Next j
	Next i
	lTime2=getsystemticks
	debugprint lTime2 - lTime1
	exit sub
End Sub
</script:module>