Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

String

ParadigmParadigm Member Posts: 77
Hi all,

May i know how to fill in a string[20] with spaces after a undetermine characters.

e.g name := 'Paradigm';

compiler gave name[20] = Paradigm;
i want name[20] = Paradigm ;
<--space--->

Thanks to all who help.

Comments

  • pritaeaspritaeas Member Posts: 274
    [code]
    var
    name: string[20];
    begin
    name := 'Paradigm';
    name := name + StringOfChar(' ', 20 - Length(name))
    end;
    [/code]

    hth, pritaeas

    : May i know how to fill in a string[20] with spaces after a
    : undetermine characters.
  • Shawn CarterShawn Carter Member Posts: 0

    _ ( http://forcoder.org ) free ebooks and video tutorials about ( Scratch Swift Go Ruby JavaScript Objective-C Visual Basic Delphi Assembly Perl Python R C C++ C# Java PL/SQL PHP MATLAB Visual Basic .NET Transact-SQL COBOL Alice Dart Crystal Lua Ada ABAP Awk Julia FoxPro F# Kotlin Scala Clojure ML Erlang SAS Apex VBScript Fortran LabVIEW Rust Logo Scheme Bash Prolog Hack D Lisp ) ______________

Sign In or Register to comment.