Friday, May 21, 2010

How to convert a source code to documenting code in visual basic?

are you referring to Pseudocode? If so then a simple example would be:





VB6 code:


=================


cmd_login_click()


If txt_Login.text="fred" then


show frm_application


else


msgbox "Invalid Username"


end if


end sub





Pseudocode:


========


if ValidName is fred


Log in to users account


else


show a Login Fail message


end if





(sorry about layout Yahoo! Answers text boxes dont allow for Tabs/Multiple spaces lol)

How to convert a source code to documenting code in visual basic?
You need to be more specific - I don't quite understand what you are asking. Are you asking how to document your source code? Please post more details.


No comments:

Post a Comment