FormatCode Code Formatter is based on serveral powerful syntax parser engines
so you can exactly control the appearance of your source code. Here is the code formatting demo of
FormatCode VB Code Formatter to prove the ability of code formatting
functions of FormatCode:
Global Const APPREMERR_USERCANCEL = 0 Global Const APPREMERR_NONFATAL = 1 Global Const APPREMERR_FATAL = 2 Global Const APPREMERR_NONE = 3 Sub CalcDiskSpace(ByVal strsection As String)
Const GENERIC_WRITE = &H40000000
Const GENERIC_READ = &H80000000
Const FILE_ATTRIBUTE_NORMAL = &H80
Const INVALID_HANDLE_VALUE = -1
Const FILE_SHARE_READ = &H1
Const FILE_SHARE_WRITE = &H2
Const CREATE_NEW = 1
Const CREATE_ALWAYS = 2
Const OPEN_EXISTING = 3
Const OPEN_ALWAYS = 4
End Sub
Type FILEINFO intDiskNum As Integer fSplit As Integer strSrcName As String strDestName As String strDestDir As String strRegister As String fShared As Boolean fSystem As Boolean varDate As Date lFileSize As Long sVerInfo As VERINFO strReserved As String strProgramIconTitle As String strProgramIconCmdLine As String End Type
Public Type SYSTEMTIME
wMilliseconds As Integer
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
End Type
Sub CalcDiskSpace(ByVal strsection As String)
Static lDestFileSpace As Long
Static fSplitFile As Integer
Dim lThisFileSpace As Long
Dim intIdx As Integer
Dim intDrvIdx As Integer
Dim sFile As FILEINFO
Dim strDrive As String
End Sub
Global Const APPREMERR_USERCANCEL = 0 Global Const APPREMERR_NONFATAL = 1 Global Const APPREMERR_FATAL = 2 Global Const APPREMERR_NONE = 3 Sub CalcDiskSpace(ByVal strsection As String)
Const GENERIC_WRITE = &H40000000
Const GENERIC_READ = &H80000000
Const FILE_ATTRIBUTE_NORMAL = &H80
Const INVALID_HANDLE_VALUE = -1
Const FILE_SHARE_READ = &H1
Const FILE_SHARE_WRITE = &H2
Const CREATE_NEW = 1
Const CREATE_ALWAYS = 2
Const OPEN_EXISTING = 3
Const OPEN_ALWAYS = 4
End Sub
Type FILEINFO intDiskNum As Integer fSplit As Integer strSrcName As String strDestName As String strDestDir As String strRegister As String fShared As Boolean fSystem As Boolean varDate As Date lFileSize As Long sVerInfo As VERINFO strReserved As String strProgramIconTitle As String strProgramIconCmdLine As String End Type
Public Type SYSTEMTIME
wMilliseconds As Integer
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
End Type
Sub CalcDiskSpace(ByVal strsection As String)
Static lDestFileSpace As Long
Static fSplitFile As Integer
Dim lThisFileSpace As Long
Dim intIdx As Integer
Dim intDrvIdx As Integer
Dim sFile As FILEINFO
Dim strDrive As String
End Sub
Click here to preview the VB Code Formatting Demo 1.
With FormatCode VB Code Formatters, you can format and transform any foreign VB source code to meet your preferred coding style or any common code convention in several seconds!
|