Microsoft
Software
Hardware
Network
Question : using same variable name multiple times
generally, is it safe to keep reusing same variable other contexts.
for example
declare abc number;
begin
........
code #1
end;
declare abc number;
begin
........
code #2
end;
will the end of the first block refresh/clear out the variable abc and keep it usable for the second round? is this good programming practice?
thanks
Answer : using same variable name multiple times
Hi,
Yes, the two variables are in different blocks, so they are different.
Regards,
Franck.
Random Solutions
Working with Legacy Systems and Users (Database Design)
Can musical notes/sound frequencies act to cancel each other out?
Delphi Read huge files into an ansistring chunks
Password Protect Folder
Win RAR
Replace ButtonClickEvent with RadWindow Close (ASP.NET, C#, Telerik RadControls)
Identify available memory for an x86 application in x64 Windows
Delete blank line from textarea
SQL reporting services error in sharepoint integrated mode. Shared data source not valid
Error running scheduled task in Windows Server 2008