0

Use Tabs~!

Posted by Erik Gaius,aka [ K i r E ] on Wednesday, February 11, 2009, 8:53 AM in
Let's start this blog with a sweet and simple tip: Isa sa pinakamadaling paraan para malaman kung naisara mo na ang isang statement ay ang pag-gamit ng TABS.

Example:
for i = 0 to 10
if i < 5 then
debug.write(i)
else
for j = 0 to 10
debug.write(j)
next j
next i
Looks bad, doesn't work. Try ulit natin w/ Tabs.
for i = 0 to 10
if i < 5 then
debug.write(i)
else
for j = 0 to 10
debug.write(j)
next j
next i
Better. Makikita mo agad ung double tab sa second to the last line, meaning hindi mo naiclose ung if-else statement mo ng 'end if'. I think na starting from Visual Studio 2008 ay automatic na ung tabs, at napakalaking 2long nun lalo na sa mga besprend ni 'Syntax Error'.. hehehe

0 Comments

Post a Comment

Copyright © Gains & Hart Co. 2009 .Net.ph All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.