home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Programmer'…arterly (Limited Edition)
/
Visual_Basic_Programmers_Journal_VB-CD_Quarterly_Limited_Edition_1995.iso
/
code
/
ch17code
/
testcd.frm
< prev
next >
Wrap
Text File
|
1995-08-13
|
1KB
|
43 lines
VERSION 4.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 4236
ClientLeft = 4236
ClientTop = 1584
ClientWidth = 6720
Height = 4560
Left = 4188
LinkTopic = "Form1"
ScaleHeight = 4236
ScaleWidth = 6720
Top = 1308
Width = 6816
Begin VB.CommandButton Command1
Caption = "Click Me"
Height = 612
Left = 840
TabIndex = 0
Top = 240
Width = 1932
End
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim CDPlayer As Object
Dim Track As Object, Tracks As Object
Dim i As Integer
Set CDPlayer = GetObject("", "CDPlayer.Application")
Set Tracks = CDPlayer.Title.Tracks
For Each Track In Tracks
i = i + 1
Me.Print Track.Name
Me.Print Track.StartPosition
Me.Print Track.Length
Next Track
End Sub