User Tools

Site Tools


syntax:functions:padstart

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
syntax:functions:padstart [2021/08/02 03:53] craigtsyntax:functions:padstart [2021/08/14 22:20] (current) – [Examples] craigt
Line 32: Line 32:
 =====Examples===== =====Examples=====
  
-  padstart('99', '0', 5) = '00099' +  padstart('99', '0', 5) //Returns '00099'
-  padstart('1000', '0', 3) = '1000'  //Result length entered (3) is less than the length of '1000(4)+
  
 +  padstart('1000', '0', 3) //Returns '1000'  (Result length entered (3) is less than the length of '1000' (4))
 +
 +\\ 
 Create a fixed-width dataset from [Col1], [Col2] and [Col3] where [Col1] must be 5 characters wide, [Col2] must be 20 characters wide, and [Col3] must be 12 characters wide: Create a fixed-width dataset from [Col1], [Col2] and [Col3] where [Col1] must be 5 characters wide, [Col2] must be 20 characters wide, and [Col3] must be 12 characters wide:
   padstart([Col1], ' ', 5)   padstart([Col1], ' ', 5)
syntax/functions/padstart.txt · Last modified: 2021/08/14 22:20 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki