在编辑中可以插入的最小字符数为10,我使用了此代码,但是该消息不断说没有足够的字符。
<Button>
<TextBlock TextDecorations="Underline">
</Button>
在编辑中可以插入的最小字符数为10,我使用了此代码,但是该消息不断说没有足够的字符。
<Button>
<TextBlock TextDecorations="Underline">
</Button>
当显示错误消息时,您没有显示如何分配sDetails
或它实际包含的内容。但是,您不应使用in
迭代器来检查长度,而应使用算术运算符,例如:
ilength := Length(sDetails);
if ilength < 10 then
ShowMessage('You have to insert 10 or more characters')
else
ShowMessage('Thank you');