Saturday, February 7, 2015

Delphi Speed Tip: Create Local Variables Inline On The Fly

Here is another one of my Love Delphi / Hate Delphi nit pics. I love the strong typing aspect of Delphi. I believe you should always define a variable before you use it. I hate it though when you are inside the guts of a procedure or function and you need a new variable. You have to jump up above the begin statement define the variable and then go back to the spot you were just at and continue coding.

Well I just discovered you can create a new local variable inline on the fly and begin usinging it immediately.

I'd like to thank Ron Grove for demonstrating this handy tip in his video.


Enjoy - Semper Fi,
Gunny Mike
end.