home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hot Shareware 35
/
hot35.iso
/
ficheros
/
LVB
/
T2W32543.ZIP
/
T2WDEMO1.BAS
< prev
next >
Wrap
BASIC Source File
|
1998-05-21
|
2KB
|
80 lines
Attribute VB_Name = "T2WDEMO1_BAS"
Option Explicit
Public Const RandI = 32767
Public Const RandL = 2147483647
Public Const RandS = 1E+10!
Public Const RandD = 1E+16
Public T2WDirInst As String
Public T2WDirTest As String
Public T2WFileTest As String
Public Sub sub_Load_Combo(Cmb As Control, strFile As String)
Dim intStatus As Integer
intStatus = cFileToComboBox(Cmb.hWnd, strFile)
If (intStatus = False) Then
MsgBox ("File '" & strFile & "' can't be loaded !")
Exit Sub
End If
Cmb.ListIndex = 0
End Sub
Public Sub sub_Initialization()
Dim intResult As Integer
Dim lResult As Long
T2WDirTest = T2WDirInst + "directory for testing"
T2WFileTest = "autoexec.bat"
intResult = cMakeDir(T2WDirTest)
lResult = cFileForceCopy("c:\autoexec.bat", T2WDirTest + "\" + T2WFileTest, True)
If (lResult = True) Then
MsgBox "Can't copy file [" & T2WFileTest & "] in directory [" & T2WDirTest & "]"
End If
intResult = cChDir(T2WDirTest)
End Sub
Public Sub sub_Check_Project()
T2WDirInst = App.Path + "\"
If (cFilePathExists(T2WDirInst + "T2WIN-32.VBP") = False) Then
MsgBox "'TIME TO WIN (32-Bit)' demo not found" & vbCrLf & vbCrLf & "Place all demo files in the same directory"
End If
End Sub
Public Sub sub_NextPrev(Cmb As Control, Index As Integer)
Dim n As Integer
Dim t As Integer
n = Cmb.ListIndex
t = Cmb.ListCount - 1
If (Index = 0) Then
n = n - 1
If (n < 0) Then n = 0
Else
n = n + 1
If (n > t) Then n = t
End If
Cmb.ListIndex = n
End Sub