当前位置: 动力学知识库 > 问答 > 编程问答 >

how to use 2 functions at once in delphi?

问题描述:

OK, so here is what i mean since i couldnt think of a better title, I have 2 editbox's. 1 is for input of a string and the other is for the output.

ive been experimenting with edit2.text := LowerCase (edit1.text); & edit2.text := ReverseString (edit1.text);

i want to use the functions LowerCase & ReverseString at the same time so it both converts the capitals string to lowercase and reverses it also.. i just cant figure out how to do this without throwing all kinds of compiler errors, can anyone help me out

网友答案:

You should do

Edit2.Text := ReverseString(LowerCase(Edit1.Text));

Alternatively, since these functions commute, you can do

Edit2.Text := LowerCase(ReverseString(Edit1.Text));
网友答案:

How about edit2.text := LowerCase(ReverseString(edit1.text)) ?

分享给朋友:
您可能感兴趣的文章:
随机阅读: