Delphi Help!

I took a look at Havocs code, must be honest i was a bit confused with the involvement of a boolean value.
 
if (Upcase(InputS) in ['A','E','I','O','U']) then
TempS:=TempS+InputS;


The "In" checks to see if the character InputS equals any of those (A,E,I,O)

Its like saying - Is your name IN this list

name1,name2,name3

Boolean value is a true or false value ;)
 
Ty this code acidrain:

word := edtWord.Text;
for i := 1 to Length(word) do
begin
if (word) <> ' ') and (Not(Upcase(word) IN ['A',E','I','O','U'])) then
NewWord := NewWord + word;
 
Last edited:
Well ya, but i dont want to burden everyone with my assignment.

Okay: the following for loop needs to be written in repeat..until form.

var i, count : integer;
begin
count := lstModify.Count
for i := 0 to count-1 do
lstModify.Items.Add(lstModify.Items);
end;
 
Last edited:
EDIT: NVM your DOB suggests the latter :p

Lol, ye... but its not just delphi... also working with dev-cpp but ive been concentrating more on the latter than on delphi.
Not really a course either unless you refer course to degree
 
I took a look at Havocs code, must be honest i was a bit confused with the involvement of a boolean value.
The boolean value is needed so that it stops killing spaces after it hits the first real/non-space character.

You said its supposed to remove the spaces *before* and *after* the sentence. i.e implying the spaces within the sentence should stay. Read the question carefully...if it says remove *all* spaces then the other forumites solutions' are the way to go.

The "In" checks to see if the character InputS equals any of those (A,E,I,O)

Its like saying - Is your name IN this list

name1,name2,name3

Boolean value is a true or false value ;)

You're right, its the wrong way around. There is a "not" missing in front of the brackets. Thats what happens when one types code in firefox instead of a dev program;)

Havoc and s1ght are gonna show me up again
I borrowed the IN [] part from you're code.;)
 
Okay now it seems when i run the program, type in a word and transfer it... the listbox doesnt want to display it.... it shows something there ( i think ) because i can select the empty space with my mouse... it just doesnt want to physically show whats there?

ANy solution or sudden reason for this?
 
Okay now it seems when i run the program, type in a word and transfer it... the listbox doesnt want to display it.... it shows something there ( i think ) because i can select the empty space with my mouse... it just doesnt want to physically show whats there?

ANy solution or sudden reason for this?

Copy paste all ur code so we can see
 
Top
Sign up to the MyBroadband newsletter
X