omg C++

dj_de
Posts: 604
Joined: Tue Nov 27, 2001 11:45 pm

Post by dj_de »


ps: it's only getting rounded seconds, uhhhhh hopefully your teacher wont notice (it will still say 3000ms, but never like 3029 ms) 

 


lunix :darkstar:







im betting they just look at it and just say it works, so no problems mate ;)


dubey
Posts: 784
Joined: Fri Aug 31, 2001 4:26 pm

Post by dubey »

wut codez would i need 2 hak t3h planet

MikeJ
Posts: 686
Joined: Fri Oct 26, 2001 9:11 am

Post by MikeJ »


Public Sub ReportStatus(channel As String)
On Error Resume Next

Dim myconn As New ADODB.Connection
Dim myrs As New Recordset
Dim mySQL As String
Dim myrows As Long
Dim myData As String



myconn.Open "DSN=rocko"
mySQL = "SELECT * FROM words"
myrs.Source = mySQL
Set myrs.ActiveConnection = myconn
myrs.CursorLocation = adUseClient
myrs.Open
myrows = myrs.RecordCount
myData = myrs.GetString(, , "{-", "{-")

myData = Replace(myData, strWord & "{-", "")

Send ("PRIVMSG " & strChannel & " :I am Rocko, a learning computer.  My Neural Network is currently consuming " & Len(myData) & " bytes of data.  My SQL database is referencing " & myrs.RecordCount & " words.  I was created by MikeJ.")

myrs.Close
myconn.Close
End Sub



Locked