| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#181
| |||
| |||
| "Nick Hodges (Embarcadero)" <nick.hodges@codegear.com> wrote > ... set of Char no longer works, > since Chars are now two bytes. I wonder why the old set's max size (2^8 bits, 32 bytes) has not grown in proportion to available memory. The old set was invented when available memory was about 640 KB. Now, available memory is easily 1 GB. The new set could have a max size of 2^16 bits, 8192 bytes in size. Note that 640 KB / 32 Bytes = 20,000 1 GB / 32 Bytes = 31,000,000 1 GB / 8192 Bytes = 122,000 Regards, JohnH |
|
#182
| |||
| |||
| Lars Fosdal wrote: > if UpperCase(string[i]) in ['F', 'X', 'E'] then ; Actually, that code will still compile and work, but it is recommended that you alter this to: if CharInSet(UpperCase(string[i] , ['F', 'X', 'E']) then begin msg := 'You gotta be Norwegian'; end; -- Nick Hodges Delphi Product Manager - Embarcadero http://blogs.codegear.com/nickhodges |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.