J,
Do you mean you want 2.5 chars or do you want 3 chars?
Why not just overload 2 functions
function Space(NoChars: integer): string; overload
function Space(NoChars: real): string; overload;
HTH
Neven
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Monday, 9 October 2000 23:51
Subject: [DUG]: Equivelent Function ?
> Hi all
>
> VB has a function called "SPACE" which is function that returns a string
based on the number passed.
>
> i.e. Space(2) will return 2 spaces (2 x #32)
> This is fine, you can write a function in Delphi to emulate this,BUT you
can pass a double value...i.e. Space(2.5)
>
> Does anyone think that you could do this in delphi ?
> I guess the problem is, is hwo do you pass back 1/2 a space ?!
>
> Anyone got any suggestions ??
>
> Cheers, Jeremy Coulter
>
>
>
> Jeremy Coulter (Manager)
> Visual Software Solutions
> Christchurch, New Zealand
> PH 03-3521595
> FAX 03-3521596
> MOBILE 021-2533214
> www.vss.co.nz
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"