begin process at 2012 02 10 02:18:13
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Texte

 > TALKERS

TALKERS


 Information sur la source

Note :
Aucune note
Catégorie :Texte Classé sous :talkers Niveau :Débutant Date de création :12/05/2001 Vu :2 080

Auteur : DEL

Ecrire un message privé
Site perso
Commentaire sur cette source (0)
Ajouter un commentaire et/ou une note

 Description

ce code permet de faire des differents styles d'ecriture. C'est personemmement celui k eg utilizé dans mon prog AOL

Source

  • Public Function H4cK_STYLE(Texte As String) As String
  • i = 2
  • For j = 1 To Len(Texte)
  • If i = 0 Then
  • result = result & LCase(Mid(Texte, j, 1))
  • i = 1
  • ElseIf i = 1 Then
  • result = result & LCase(Mid(Texte, j, 1))
  • i = 2
  • ElseIf i = 2 Then
  • result = result & UCase(Mid(Texte, j, 1))
  • i = 0
  • End If
  • Next j
  • H4cK_STYLE = result
  • End Function
  • Public Function Space_STYLE(Texte As String) As String
  • Dim result As String
  • For i = 1 To Len(Texte)
  • result = result & Mid(Texte, i, 1) & " "
  • Next i
  • Space_STYLE = result
  • End Function
  • Public Function Dots_STYLE(Texte As String) As String
  • Dim result As String
  • For i = 1 To Len(Texte)
  • result = result & Mid(Texte, i, 1) & "."
  • Next i
  • Dots_STYLE = Mid(result, 1, Len(result) - 1)
  • End Function
  • Public Function Perso_STYLE(Texte As String, sign As String) As String
  • Dim result As String
  • For i = 1 To Len(Texte)
  • result = result & Mid(Texte, i, 1) & sign
  • Next i
  • Perso_STYLE = Mid(result, 1, Len(result) - 1)
  • End Function
  • Public Function Double_STYLE(Texte As String) As String
  • Dim result As String
  • For i = 1 To Len(Texte)
  • result = result & Mid(Texte, i, 1) & Mid(Texte, i, 1)
  • Next i
  • Double_STYLE = result
  • End Function
  • Public Function Lagger_STYLE(Texte As String) As String
  • Dim result As String
  • For i = 1 To Len(Texte)
  • result = result & "<html>" & Mid(Texte, i, 1) & "</html>"
  • Next i
  • Lagger_STYLE = result
  • End Function
  • Public Function Italy_STYLE(Text As String) As String
  • Dim result As String
  • j = 1
  • For i = 1 To Len(Text)
  • If j = 1 Then
  • result = result & "<font color=#008000>" & Mid(Text, i, 1)
  • j = 2
  • ElseIf j = 2 Then
  • result = result & "<font color=#C0C0C0>" & Mid(Text, i, 1)
  • j = 3
  • ElseIf j = 3 Then
  • result = result & "<font color=#ff0000>" & Mid(Text, i, 1)
  • j = 1
  • End If
  • Next i
  • Italy_STYLE = result
  • End Function
  • Private Sub UserControl_Resize()
  • UserControl.Height = 510
  • UserControl.Width = 1230
  • End Sub
Public Function H4cK_STYLE(Texte As String) As String
i = 2
For j = 1 To Len(Texte)
If i = 0 Then
result = result & LCase(Mid(Texte, j, 1))
i = 1
ElseIf i = 1 Then
result = result & LCase(Mid(Texte, j, 1))
i = 2
ElseIf i = 2 Then
result = result & UCase(Mid(Texte, j, 1))
i = 0
End If
Next j
H4cK_STYLE = result
End Function

Public Function Space_STYLE(Texte As String) As String
Dim result As String
For i = 1 To Len(Texte)
result = result & Mid(Texte, i, 1) & " "
Next i
Space_STYLE = result
End Function

Public Function Dots_STYLE(Texte As String) As String
Dim result As String
For i = 1 To Len(Texte)
result = result & Mid(Texte, i, 1) & "."
Next i
Dots_STYLE = Mid(result, 1, Len(result) - 1)
End Function

Public Function Perso_STYLE(Texte As String, sign As String) As String
Dim result As String
For i = 1 To Len(Texte)
result = result & Mid(Texte, i, 1) & sign
Next i
Perso_STYLE = Mid(result, 1, Len(result) - 1)
End Function

Public Function Double_STYLE(Texte As String) As String
Dim result As String
For i = 1 To Len(Texte)
result = result & Mid(Texte, i, 1) & Mid(Texte, i, 1)
Next i
Double_STYLE = result
End Function

Public Function Lagger_STYLE(Texte As String) As String
Dim result As String
For i = 1 To Len(Texte)
result = result & "<html>" & Mid(Texte, i, 1) & "</html>"
Next i
Lagger_STYLE = result
End Function


Public Function Italy_STYLE(Text As String) As String
Dim result As String
j = 1
For i = 1 To Len(Text)
    If j = 1 Then
    result = result & "<font color=#008000>" & Mid(Text, i, 1)
    j = 2
    ElseIf j = 2 Then
    result = result & "<font color=#C0C0C0>" & Mid(Text, i, 1)
    j = 3
    ElseIf j = 3 Then
    result = result & "<font color=#ff0000>" & Mid(Text, i, 1)
    j = 1
    End If
    Next i
Italy_STYLE = result
End Function

Private Sub UserControl_Resize()
UserControl.Height = 510
UserControl.Width = 1230
End Sub
   

 Conclusion

Attention, c'est un controle Active X . sans les 4 dernieres lignes c une simple fonction

J'attends des commentaires et des critiques


 Sources du même auteur

Source avec Zip EDITEUR DE TEXTE
OVAL FORM
Source avec Zip GÉNÉRATEUR DE PHRASE
Source avec Zip RESOLVEUR D'EQUATIONS DE DROITE
Source avec Zip HORLOGE

 Sources de la même categorie

Source avec Zip Source avec une capture MASQUE DE SAISIE NUMÉRIQUE par acive
Source avec Zip Source .NET (Dotnet) COMPTEUR DE NOMBRE DE MOTS DANS UN TEXTE par alpha5
Source avec Zip Source avec une capture HM - BLOCNOTE par hassenmajor
Source .NET (Dotnet) [VB.NET] CLASS DE COLORATION SYNTAXIQUE "ON THE FLY" par huzima
Source avec Zip Source avec une capture PERSONNALISEZ VOS BOÎTES DE MESSAGE (X)HTML par medjahedScript

Commentaires et avis

Aucun commentaire pour le moment.

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 2,278 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales