Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fill with caracteres like padl in Visual FoxPro
Message
From
20/02/2003 14:13:15
 
 
To
20/02/2003 13:51:08
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brazil
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00755670
Message ID:
00755677
Views:
10
Use this custom function instead:
Private Function PadL(ByVal eExpression As String, _
                      ByVal nResultSize As Long, _
                      Optional ByVal cPadCharacter As String = " ") As String

  Dim PadLen As Long
  PadLen = nResultSize - Len(eExpression)
  If PadLen > 0 Then
      PadL = String(PadLen, cPadCharacter) & eExpression
  Else
      PadL = Left(eExpression, nResultSize)
  End If
End Function

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Reply
Map
View

Click here to load this message in the networking platform