0% found this document useful (0 votes)
6 views28 pages

Java Traning

The document outlines the differences between VBScript and JavaScript, highlighting aspects such as case sensitivity, browser compatibility, and ease of learning. It provides examples of language elements and syntax for both scripting languages. Additionally, it includes examples of how to implement scripts in both VBScript and JavaScript, along with custom properties and script data usage.

Uploaded by

Vaishnavi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views28 pages

Java Traning

The document outlines the differences between VBScript and JavaScript, highlighting aspects such as case sensitivity, browser compatibility, and ease of learning. It provides examples of language elements and syntax for both scripting languages. Additionally, it includes examples of how to implement scripts in both VBScript and JavaScript, along with custom properties and script data usage.

Uploaded by

Vaishnavi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 28

VB-(VISUAL BASIC) AND JAVA-(JUST

ANOTHER VIRTUAL ACCELERATOR) SCRIPT


DIFFERENCE BETWEEN VB-SCRIPT AND
JAVA-SCRIPT

VB- SCRIPT JAVA- SCRIPT


• It is not case sensitive. • It is case sensitive.
• VB script runs only on IE. • Java script runs on any browser.
• File extension for VB script is .vbs • File extension for VB script is .js
• It was developed by Microsoft. • It was developed by Netscape.
• It is difficult for beginners to learn • It is simpler and easier to learn JavaScript
VBScript as compared to JavaScript. • Java Stand for “Just another virtual
• VB Stand for “Visual Basic” Accelerator“
LANGUAGE ELEMENT

VB-SCRIPT JAVA-SCRIPT
• me.DataValue(“01ABC00.PV") • this.DataValue(“01ABC00.PV")

• Sub Function rect001_ondatachage


rect001_ondatachage……….e ………. {
nd sub }
LANGUAGE ELEMENT

VB-SCRIPT JAVA-SCRIPT
• For comment • For comment
statement/Script – ‘ statement/Script – //
LANGUAGE ELEMENT

VB-SCRIPT JAVA-SCRIPT

• Fill color code - • Fill color code -


LANGUAGE ELEMENT

VB-SCRIPT JAVA-SCRIPT

• symbol use – • symbol use –


• AND • &&
• OR • ||
• NOT •!
SELECT THE SCRIPT LANGUAGE
SCRIPT COMPARE
• VB & JAVA Script
VB SCRIPT EXAMPLE
• 1.Select script data.
• 2.Added point and parameter
• 3.Edit script
• 4.Added script “ondatachange”
JAVA SCRIPT EXAMPLE

• 1.Select script data.


• 2.Added point and parameter
• 3.Edit script
• 4.Added script “ondatachange”
GSH THROUGH CALL JAVA-SCRIPT
• Added custom property
• Added Script data “Point & parameter”
• Add custom script “.js” format
• Object style class passes CSS
• Call custom loop added in shape – “onupdate”
• Custom GSH call graphics page OR manually insert .htm
page-
GSH THROUGH CALL VB-SCRIPT
• Custom Property added “tag name & Parameter”
• Script data added tag name & parameter
• Add custom script .vbs format
• Object style class passes CSS
• Call custom loop added in shape – “onupdate”
Any Question

You might also like