Guest User

Untitled

a guest
Jul 28th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.55 KB | None | 0 0
  1. Func _Cronjob_Create($db)
  2.     _SQLite_Startup()
  3.     If @error Then
  4.         SetError(2)
  5.         _Log("SQLite Error: SQLite.dll Can't be Loaded!")
  6.     EndIf
  7.     $dbn = _SQLite_Open($db)
  8.     If @error Then
  9.         _Log("SQLite Error " & $dbn & " can't be Loaded!" & @error)
  10.         SetError(1)
  11.     Else
  12.         _Log("SQL loaded!")
  13.         If Not _SQLite_Exec($dbn, "CREATE TABLE IF NOT EXISTS Cronjob (function TEXT, time TEXT);") = $SQLITE_OK Then
  14.             _Log("Ignore THIS!" & _SQLite_ErrMsg())
  15.             _Log("Created Table(function,time)")
  16.  
  17.         Else
  18.             $fIsOpen = True
  19.  
  20.         EndIf
  21.     EndIf
  22. EndFunc   ;==>_Cronjob_Create
Add Comment
Please, Sign In to add comment