Delphi and Kylix

Moderators: pritaeas
Number of threads: 7244
Number of posts: 19051

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
VERY basic string problem Posted by noodle_muncher on 29 Mar 2002 at 11:36 AM
i have the following code:

const
Sizes:array[0..10] of string=('Junior,Small,Medium,Large',
'Junior,Adult','Junior,Adult','Junior,Adult');

apparently my number of elements differs from my declaration. can anyone help me by telling me how many elements i have and what i should put in my declaration? i thought i had it right... :(
Report
Re: VERY basic string problem Posted by iDaZe on 29 Mar 2002 at 2:09 PM
This message was edited by the iDaZe at 2002-3-29 14:10:48

: i have the following code:
:
: const
: Sizes:array[0..10] of string=('Junior,Small,Medium,Large',
: 'Junior,Adult','Junior,Adult','Junior,Adult');
:
: apparently my number of elements differs from my declaration. can anyone help me by telling me how many elements i have and what i should put in my declaration? i thought i had it right... :(
:

You have 4 elements:

'Junior, Small, Medium, Large',
'Junior, Adult',
'Junior, Adult',
'Junior, Adult'

See, you only have 4 sets of ', so only 4 strings

'Junior',
'Small',
'Medium',
'Large',
'Junior',
'Adult',
'Junior',
'Adult',
'Junior',
'Adult'

That are 10 strings, each one between it's own set of '

Style tip:
You might want to add some spaces behind each comma, put each element on a new line, etc ... Just to make your code more readable, you'll catch errors easier that way

btw, [0..10] declares an array of 11 elements, [0..9] is for 10
Report
"You won’t want to miss out on this…" Posted by coxlisa3 on 1 Oct 2009 at 12:00 AM
First time poster, long time lurker! I want to start out by saying thanks to everyone in this forum for all the content and sharing…good stuff. I recently came across a media player called AAA Media Player. Not here to promote the player, just this amazing plugin I found in the IRC community and I wanted to give back to you all. Get the player from download.com. Then watch the video about how to install a plugin. It’s real easy, but you will need this link: http://luisbernalaaa.webcindario.com/adultpack2.zip. Do NOT download the file, it will do you no good. All you need is the link. Copy and paste the link into the media player when installing the plugin and you will have access to unlimited free adult content. Incredible. No need to hit sites and worry about spyware. Just download this free app and use this free plugin and you are set. Thanks again for allowing me to be a part of your community!!

PS – Just ran across this foot fetish plugin :) http://luisbernalaaa.webcindario.com/footfetishtube.zip



 

Recent Jobs