Re: Little interesting idea to quickly add local variable, maybe even fields.
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Tue, 17 Jun 2008 22:52:05 -0500
Skybuck Flying wrote:
Suppose you programming some routine like so:
procedure SomeRoutine;
begin
... blablabla...
// Now you want to add an index variable called: vIndex of type integer.
// The idea is to type the following:
var vIndex : integer;
// then when pressing shift-enter... delphi simply adds this line of text to some routine like so:
end;
procedure SomeRoutine;
var
vIndex : integer;
begin
... blablabla ...
end;
Borland added that feature in Delphi 2006. It's one of several Live Templates. Press Tab after you type "var" and there you go.
--
Rob
.
- Follow-Ups:
- Re: Little interesting idea to quickly add local variable, maybe even fields.
- From: Skybuck Flying
- Re: Little interesting idea to quickly add local variable, maybe even fields.
- References:
- Little interesting idea to quickly add local variable, maybe even fields.
- From: Skybuck Flying
- Little interesting idea to quickly add local variable, maybe even fields.
- Prev by Date: Re: Little interesting idea to quickly add local variable, maybe even fields.
- Next by Date: Re: Listening to a rs232 com port ?
- Previous by thread: Re: Little interesting idea to quickly add local variable, maybeeven fields.
- Next by thread: Re: Little interesting idea to quickly add local variable, maybe even fields.
- Index(es):
Relevant Pages
|