Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
537 views
in Technique[技术] by (71.8m points)

delphi - How to declare inline variables without error messages?

I'm using Delphi 10.3 Community Edition. When I write code with inline variable declarations like

var i:=1 to length(aStatement) do

the code compiles and runs as expected. No errors whatsoever. However, the IDE displays the code as if there were problems. Text is underlined with red squiggles and I'm told there are errors like "Expected an identifier but received VAR..." I get other "Expected...but received" and "Undeclared identifier" errors listed for code that follows the inline declaration.

What should I do to update the IDE to recognize this language change?

question from:https://stackoverflow.com/questions/65924804/how-to-declare-inline-variables-without-error-messages

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The only solution is to upgrade to Delphi 10.4, which fixes this very well-known bug.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

62 comments

56.6k users

...