>I wanted to store unlimited text in a property of an object. I thought I wouldn't be able to do it. I thought that the limit of a character variable was 254 chars. (As per VFP 6 help) But upon testing I found that I can issue:
>cvar=replicate('x'+254)+replicate('y'+254)
>?type('cvar') && returns C
>?cvar && shows that all 508 chars are stored.
>I thought there would be truncation
>
>I can also issue something like:
>this.myproperty=replicate('x'+254)+replicate('y'+254)
>or
>this.myproperty=mytable.mymemofield
>?type('this.myproperty') && returns C not M
>without a problem
>
>Was this a limitation in earlier (prior to 6) version of VFP, or could you always do this?
>
>TIA
254 is the maximum length for a character field. A character variable can be 2 billion bytes.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer