kcip@cs.cuhk.hk 
Author Message
 kcip@cs.cuhk.hk

Quote:
>Hi,
>        I can't compile a unit in delphi but don't know why is it so, any
>one can help will be great.
>--------------> Code Start <--------------

>function aFunction(const S: String; Key: Word): String;
>var
>  I: byte;
>begin
>  Result[0] := S[0];    { error here }
>  for I := 1 to Length(S) do
>  begin
>    Result[I] := dosomething;
>  end;

        Just a thought -- is the 0 element not the length of the string?  I'm not sure
you can change it, may be read only.

+-----------------------------------------------------------------+

| (519) 862-4563                   http://www.*-*-*.com/ ~lambert |
+-----------------------------------------------------------------+



Tue, 29 Dec 1998 03:00:00 GMT  
 kcip@cs.cuhk.hk

Quote:

>>Hi,
>>        I can't compile a unit in delphi but don't know why is it so, any
>>one can help will be great.

>>--------------> Code Start <--------------

>>function aFunction(const S: String; Key: Word): String;
>>var
>>  I: byte;
>>begin

>>  Result[0] := S[0];    { error here }

>>  for I := 1 to Length(S) do
>>  begin
>>    Result[I] := dosomething;
>>  end;

>        Just a thought -- is the 0 element not the length of the string?  I'm
> not sure
>you can change it, may be read only.

No, You could do it in Pascal 3.02a (and after that).
 Not now. You have to use Setlength and length. (to bad ;()

Happy Hacking The Graphical Gnome

----------------------------------------------
| Rob den Braasem    | Voice :-31-79-3531520 |
|                    | Fax   :-31-79-3513561 |

|                    |-----------------------+---------------------+
| KTI bv             | "I die when it's time for me to die.        |
| P.O. Box 86        | So let me live  my life the way I want to." |
| 2700 AB Zoetermeer |                                             |
| The Netherlands    |   Jimi Hendrix                              |
-------------------------------------------------------------------+



Fri, 01 Jan 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Delphi CS 1.02 to Sybase Help

2. Accessing oracle sequences from Delphi 1.0 CS

3. CS Apps : TTable or TQuery ?

4. Delphi CS, Oracle7.2 & SQLNetV2.2

5. Documents in tables in CS ?

6. help needed please for CS 110 class

7. Delphi 2.0 CS Update & BLOB Problem

8. Problem with Delphi3 CS and Sybase 11 - HELP please

9. 3 Questions on Delphi 3.0 cs

10. CS Queries than can be Cancelled

11. URL: http://www.cs.vu.nl/~jprins/tp.html

12. D2, IB-cs application problem

 

 
Powered by phpBB® Forum Software