Sunday, August 2, 2009

Microsoft Visual Basic 6- What does the align feature on the format menu do?

This is for my VB programming class- it just started and we haven't actually used the program yet.


Also, can you interchange semicolons and commas in VB?

Microsoft Visual Basic 6- What does the align feature on the format menu do?
It aligns the controls inside the form that is currently open.








You can't interchange semicolons and commas.
Reply:it aligns all the controls that are selected to how you want as there are a few different alignment commands in the format menu ie align horizontally, align vertically, align to the left, align to the centre, align to the right.





WIth regards to interchanging semicolons and commas , do you mean if you had a string can you programatically change them or what exactly ?
Reply:The align section of the properties menu actually centers what is in the control. For example, if you have a label and you set the align property of that label to Left Justified, all of the text within that label will start from the far left. If you set it to Centered, it will center the text in the middle of the label.





As for the code, there aren't a lot of instances where you'd use a comma in the beginners stages, but if you did it could not be replaced with a semicolon. You would use a semi-colon in multi part lines of code, like a database connection string for example. However, again you could not replace this with a comma.


No comments:

Post a Comment