Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Albert king explorer - variabili.bas

variabili.bas

Caricato da: Albertking82
Scarica il programma completo

  1. Attribute VB_Name = "procedure"
  2. Option Explicit
  3.  
  4. Public filtro As Boolean
  5. Public home As String
  6. Public music As String
  7. Public censura(1 To 100) As String
  8. Public Sub caricapreferiti()
  9.  Dim strurl As String, pos As Integer
  10.  Dim num As Integer
  11.   num = FreeFile
  12.   pos = 0
  13.    Open App.Path & "\urls.txt" For Input As num
  14.      Do While Not EOF(num)
  15.        Line Input #num, strurl
  16.          Frmbrowser.Cmburl.AddItem strurl, pos
  17.          pos = pos + 1
  18.      Loop
  19.    Close #num
  20.  End Sub
  21. Public Sub caricaimpostazioni()
  22.  Dim cens As String, n As Integer
  23.   On Error Resume Next
  24.    n = FreeFile
  25.    Open App.Path & "\settings.txt" For Input As #n
  26.      Input #n, home
  27.      Input #n, music
  28.      Input #n, cens
  29.       If Trim(LCase(cens)) = "si" Then
  30.         filtro = True
  31.       End If
  32.    Close #n
  33. End Sub
  34. Public Sub caricacensorwords()
  35.  censura(1) = "vignette di maometto"
  36.  censura(2) = "terrorismo"
  37.  censura(3) = "orgrish"
  38.  censura(4) = "rotten"
  39. End Sub
  40.  
  41. Public Sub inizio()
  42.  Dim nu As Integer, numer As Integer
  43.    numer = FreeFile
  44.    nu = FreeFile
  45.      Open App.Path & "\urls.txt" For Output As #nu
  46.            Print #nu, "http://www.fuorissimo.com"
  47.            Print #nu, "http://www.Pierotofy.it"
  48.            Print #nu, "http://www.ioprogrammo.it"
  49.            Print #nu, "http://www.programmazione.it"
  50.      Close #nu
  51.       Open App.Path & "\settings.txt" For Output As #numer
  52.           Print #numer, "http://www.google.it"
  53.           Print #numer, "http://www.amazon.com"
  54.           'censura
  55.           Print #numer, "no"
  56.       Close #numer
  57. End Sub