dcsimg
Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Web
Expertise: Advanced
Mar 26, 1999

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Use Brackets to Keep VID 6 Happy

When you use the Scripting Object Model (SOM) in Visual InterDev 6, keep in mind that the script library is biased towards JavaScript. Your perfectly valid VBScript may produce strange errors when interpreted by the SOM. For instance, this line of VBScript:
 
employeeID=Listbox3.getValue
might produce bizarre text in the browser, such as:
 
<=function _LB_getValue(nIndex) { if (typeof(nIndex) == 'undefined') nIndex 
= this.selectedIndex; if (!isNaN(parseInt(nIndex)) && nIndex >= 0 && nIndex 
< this.getCount()) return this._options[nIndex].value; return ''; } 
The SOM script library is actually returning its own code instead of the value that you requested. The fix is simple--just add brackets to the VBScript method:
 
employeeID=Listbox3.getValue()
Whenever your code produces unexpected results from the script library, adding a couple of brackets could be the fastest fix.
Ken Cox
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date