Join 300,145 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,808 people online right now. Registration is fast and FREE... Join Now!
Alrighty you VB experts, I need your help putting together the ref sheet for Visual Basic.
It should cover the same type of things the C++ ref sheet covers, and we'll eventually do a more advanced one. Post everything here and we'll start to assemble this bad boy!
Well Im not sure if these can be included as part of a reference sheet but i put em cause they are (dats wat i think) used very often Common Controls Label, Textbox, CommandButton, PictureBox, Frame, CheckBox, ScrollBars, Timer, DriveListBox, DirectoryListBox, FileListBox,Shape,Line,Data control,Image,OLE,ADODC
I know I'm posting this kinda late...Just hope Chris reads this in time
File Handling:
Open "<filename>" for <mode> as <#handler>
where mode is: INPUT : For Reading Files OUTPUT : For Writing/Overwriting a File APPEND : For Adding Data to a File
and handler is a positive integer. Eg. 1,2,100...etc..
For reading fields from one line of data from a file into variables INPUT <#handler>, <variable list>
For reading the entire line in the file into a single string LINE INPUT <#handler>,<string_variable>
For Writing Data enclosed in quotes: WRITE #1, <variable/constant/expression>
For Writing Data without quotes: PRINT #1, <variable/constant/expression>
To Close the Data File: CLOSE <#handler>
Common Functions used: EOF(<#handler>) : returns 1 if End of File is encountered else returns 0.
LOF(<#handler>) : returns the size of the file in bytes
P.S : I haven't mentioned Binary and Random File Modes (along with R/W Access permissions) because I felt it would fit better in the Advanced VB Reference Sheet.
Born2Code, can you take what you posted, and the things in this thread and combine them in to a document that's 115 lines in length... Just take the important/most used things a beginner to VB would use.
Once you've posted the .txt I'll put it in the pdf. Thanks!!!
Born2Code, can you take what you posted, and the things in this thread and combine them in to a document that's 115 lines in length... Just take the important/most used things a beginner to VB would use.
Once you've posted the .txt I'll put it in the pdf. Thanks!!!
Ok, I've attached the Text File. I've taken stuff from Louisda16th's Version,Corrected all the errors(lucky I noticed them) and added some content as well.