Quote:
Originally Posted by maizere
So,decided to buy a reference book to vbscript
and i bought the wileys vbscript a thick book,now it has been a very difficult to understand that book because all the examples provided in the Wileys vbscript Book are designed so that they can run using WSH..But i learned to put the vbscript code directly in html and run through browser ,the problem is that this book is not concerned with the beginner.
|
I have very Limited HTML Experience; which, was around 1998 thru 2002.
I have no Browser Programming Experience.
My Pre-VBScript Programming Experience was primarily within the Windows Command Prompt and DOS Command Prompt.
"
VBSCript Third Edition" touches on Programming with HTML; but, that is beyond my VBScript Projects; so, I know nothing about it.
"
VBScript Third Edition" touches Programming within the Command Prompt; but, I haven't studied it in detail.
"
VBScript Third Edition" is mostly based on the Programmer using NotePad, and/or other similar Text Editors, as the Programming Platform.
Quote:
Originally Posted by maizere
This book do not provide the technique like that of w3schools.com.i m unable to pick up anything from this book.i m stopped in chapter 3.For Example in w3school functions of vbscript are all kept in the head section and are called through the body section .This is a good technique to keep function in the head section but when refered to wileys vbscript book such technique are't there.
|
Actually, "
VBScript Third Edition" isn't concerned with how you organize your Code; because, every Programmer has one's own style of Code Organization.
"APPENDIX C: CODING CONVENTIONS" is more important than where a Prograamer puts Variable & Constant Declarations and Subroutine Blocks and Function Blocks within the Code.
The important thing is not to make "Spaghetti Codes"; and, to be consistent with all of your Codes.
There is nothing to stop you from writing the Published Code Sequences using your own Code Organization Style; although, doing this would complicate the proofreading of your Code with the Published Code.
The Published Code Sequences within "
VBS Script Third Edition" aren't designed for you to use them in your Real Life VBScript Projects; but, are designed to be Study Models for how to use VBScript Commands.
So, you may want to follow the "
VBScript Third Edition" Organization Model with your own Code Writing Organization Style; or, just keep reminding yourself that their Code Organization Theory is different from your own, or from what you are used to; and, live with that reality.
"
VBScript Third Edition" is lacking some Basic Examples of how to sequence some VBScript Commands. This is due Veteran Programmers forgetting what it was like being Newbie Programmers.
Quote:
Originally Posted by maizere
I couldnot get anything i expected...Can any one help me how should i utilize this book????.Now i m planning to buy the book that has the vbscript code embeded into html . May be i m the beginner and have no concept of using this book so your suggestion can save me buying the next book..What is the technique to use this book.
|
All Reference Books of this nature, which includes School Books, are designed to cover Specific Topics within Specific Section within the book. The Specific Topics can be looked for within the Table Of Contents and within the Index.
Also, sometimes a Section refers to another Section for additional information concerning a Specific Topic.
Sometimes, a Specific Topic is covered in multiple Sections, with each Section focused on a different aspect of the Specific Topic.
However, I have found that "
VBScript Third Edition" is seriously lacking in Referencing Basic VBScript Programming Concepts in all three areas of Referencing.
Quote:
Originally Posted by maizere
The Wileys book also provide no technique of starting vbscript.I m suffering a lot.Please help me reduce this problem
|
As previously mentioned, "
VBScript Third Edition" assumes that you are using NotePad, or some other similar Text Editor, as your Code Writing Platform.
Windows Script Host uses NotePad, and similar Text Editors, as a Computer Programming Language Platform.
Let's say that you save your VBS Files in a Folder on your Computer.
If that Folder is on your Desktop; then, all you have to do is Open that Desktop Folder; and, you will see your VBS Files; as long as, your File Search Mode is set at "All Files".
If your File Search is "Only .txt Files"; then, you won't see your VBS Files.
NOTE: Your VBS File must have the ".vbs" extension; and, not the ".txt" Extension in order for the Windows Script Host to RUN your VBS File. This means that you must use "Save As"; and, type ".vbs" with your VBS File Name; and, have the File Setting on "All Files".
If your VBS File does have the ".vbs" Extension; then, you can RUN that File by Clicking on it.
Left-Clicking the VBS File may activate the Windows Script Host; or, activate the NotePad/Text Editor you used to Write the Code; depending upon, what you did with that VBS File the last time you Activated it.
Right-Clicking the VBS File allows you better control of Activating the File for Running or for Editing; but, the process is longer and more complicated.
When you Right-Click on the VBS File, a Menu will Open giving you Options.
The Bold Text "Open" will either RUN the VBS File via the Windows Script Host; or, it will Open the NotePad/Text Editor that you used to Write/Edit the VBS File; depending upon, what you did the last time you Activated the VBS File.
The Standard Text "Open" Option will Open another Menu giving you choices of how to access the VBS Files based on your Previous Activation Choices.
My Standard Text "Open" Option Menu Choices are (1) Windows Script Host; and, (2) NotePad. I don't use any other means of accessing my VBS Files; therefore, I don't have another other Menu Option Choices.
To RUN the VBS File choose the "Windows Script Host" Option.
To Edit the VBS File; or, to Copy the VBS File to create a New VBS File, choose the "NotePad/Text Editor that you use" Option.
If you have never before accessed the VBS File on the Computer System; then, that Computer System will ask you for which Format to use to Open the VBS File; as well as, whether to use that Choice every time you access the VBS File.