Código (vb) [Seleccionar]
Private Sub Form_Unload(Cancel As Integer)
If MsgBox("¿Salir?", vbYesNo) = vbNo Then Cancel = True
End Sub
No lei bien...
DoEvents!
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúPrivate Sub Form_Unload(Cancel As Integer)
If MsgBox("¿Salir?", vbYesNo) = vbNo Then Cancel = True
End Sub
Cita de: gaston93 en 20 Diciembre 2010, 20:45 PM
No tenes que colocar nada solo quedaria asiIf MsgBox("Seguro que quiere salir sin guardar?", 1) = 1 Then
End
en else no tenes que colocar nada
If MsgBox("Seguro que quiere salir sin guardar?", 1) = 1 Then End
Cita de: Karcrack en 18 Diciembre 2010, 15:17 PMWooow Karcry, esta genial!
Os recomiendo MZ-Tools, que ademas de tener la opcion de crear cabeceras tiene otras muchas cosas utileshttp://www.mztools.com/v3/download_sp.aspx
Un saludo
Option Explicit
Private Sub Form_Load()
TestPA "Que", "vivan", "las", "ranas"
End Sub
Sub TestPA(ParamArray Frog())
MsgBox Join$(Frog, vbNewLine)
End Sub
MakeHeader = Linea1 & vbCrLf & Linea2 & vbCrLf & LineaT & vbCrLf & LineaA & vbCrLf & LineaM & vbCrLf & LineaD & vbCrLf & LineaC & vbCrLf & LineaW & vbCrLf & Linea3 & vbCrLf & Linea4 & vbCrLf
Private Const cLine1 = "'/////////////////////////////////////////////////////////////////////////////////////////////////////////'"
Private Const cLine2 = "'/// ///'"
Private Const cLineT = "'/// º Tite: TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT ///'"
Private Const cLineA = "'/// º Author: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ///'"
Private Const cLineM = "'/// º Mail: MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ///'"
Private Const cLineD = "'/// º Date: DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD ///'"
Private Const cLineC = "'/// º Contributors: CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC ///'"
Private Const cLineW = "'/// º Web: WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW ///'"
Private Const cLine3 = "'/// ///'"
Private Const cLine4 = "'/////////////////////////////////////////////////////////////////////////////////////////////////////////'"
Private Const cCadenaT = "TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT"
Private Const cCadenaA = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
Private Const cCadenaM = "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
Private Const cCadenaD = "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"
Private Const cCadenaC = "CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"
Private Const cCadenaW = "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
'/// º Tite: mMakeHeader.bas ///'
Function DeCrypterForce(Src As String, From As String, Ended As String, Ruta As String)
From As String '?
Ended As String '?
For i = From To Ended
For X = 0 To UBound(Franvb)
Franvb(X) = (Franvb(X) + (256 - i)) Mod 256
Next X