Pad$
result$ = Pad$(SourceString$, PadString$, Step)
 
Parameters:

    SourceString$ = The string you wish to pad
    PadString$ = The character or word you wish to insert
    Step = The character step between insertions
Returns:

    result$ = The new padded string
 

     The pad$() function will insert words of characters through a string.



FACTS:


      * none



Mini Tutorial:



  
; Insert the character "-"  every other character
; through the string "Play Basic"
  Print Pad$("Play Basic","-",1)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  P-l-a-y- -B-a-s-i-c-
  

 
Related Info: Insert$ | Make$ | Replace$ :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com