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 >
Text File  |  1995-08-13  |  1KB  |  43 lines

  1. VERSION 4.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   4236
  5.    ClientLeft      =   4236
  6.    ClientTop       =   1584
  7.    ClientWidth     =   6720
  8.    Height          =   4560
  9.    Left            =   4188
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   4236
  12.    ScaleWidth      =   6720
  13.    Top             =   1308
  14.    Width           =   6816
  15.    Begin VB.CommandButton Command1 
  16.       Caption         =   "Click Me"
  17.       Height          =   612
  18.       Left            =   840
  19.       TabIndex        =   0
  20.       Top             =   240
  21.       Width           =   1932
  22.    End
  23. End
  24. Attribute VB_Name = "Form1"
  25. Attribute VB_Creatable = False
  26. Attribute VB_Exposed = False
  27. Option Explicit
  28.  
  29. Private Sub Command1_Click()
  30.     Dim CDPlayer As Object
  31.     Dim Track As Object, Tracks As Object
  32.     Dim i As Integer
  33.     Set CDPlayer = GetObject("", "CDPlayer.Application")
  34.     Set Tracks = CDPlayer.Title.Tracks
  35.     For Each Track In Tracks
  36.         i = i + 1
  37.         Me.Print Track.Name
  38.         Me.Print Track.StartPosition
  39.         Me.Print Track.Length
  40.     Next Track
  41. End Sub
  42.  
  43.