Form1.frm
1.44 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
VERSION 5.00
Object = "{87AC6DA5-272D-40EB-B60A-F83246B1B8D7}#1.0#0"; "TeComDatabase.dll"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 3300
TabIndex = 0
Top = 2295
Width = 900
End
Begin TECOMDATABASELibCtl.TeDatabase TeDatabase1
Left = 615
OleObjectBlob = "Form1.frx":0000
Top = 1395
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim x As Integer
Private Sub Command1_Click()
TeDatabase1.Provider = 1
'configura o componente para a conexao com o banco principal
TeDatabase1.Connection = conn
If TeDatabase1.setCurrentLayer("WATERLINES") Then
'Retorna a coordenada do ponto 2 da linha 0xx999
If TeDatabase1.getPointOfLine(0, 12253, 0, x, y) Then
MsgBox "Coordenada do Terceiro Ponto da linha : " & CStr(x) & "_ " & CStr(y)
End If
End If
'x = TeDatabase1.getPointOfLine(0, 1345, 0, x, y)
End Sub