anything to string

there are some functions giving output i want to show them with
showmessage command,like date,but the datatypes are different ,i have this
problem with some other functions too,how can i convert anything like
a date to string?



regards Sepehr

Comments

  • : there are some functions giving output i want to show them with
    : showmessage command,like date,but the datatypes are different ,i have this
    : problem with some other functions too,how can i convert anything like
    : a date to string?
    :
    :
    :
    : regards Sepehr
    :
    FormatDateTime(). Other data types can be converted using Format(). Structured types must be formatted per field. Thus the record:
    [code]
    var
    MyRec: record
    Name: string;
    age: integer;
    address: pointer;
    end;
    [/code]
    can be shown as:
    [code]
    with MyRec do
    Format('%s (%d): %p', [Name, age, address]);
    [/code]
Sign In or Register to comment.

Howdy, Stranger!

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

Categories

In this Discussion