Discussion on ASP - Classic in Software Central at TeluguPeople.com
TeluguPeople
  are the trend-setters

 
Software Central: ASP - Classic
Useful ASP Functions for everybody
  Page: 1 of 1    


Now you can Read Only. Login to post messages
Email ID:
Password:
Remember me on this computer
If you know, Visual Basis, you must have used IIF function. You know how easy and great that function is. If you do not know about IIF function, see the following example: You need to send a value of 1 if customerType = 1 or you have to send 2. Here is the normal code: IF customerType = 1 THEN sValue = 1 ELSE sValue = 2 END IF Instead of the above 5 lines, you can use the following single line, with IIF function. sValue = IIF(customerType = 1, 1, 2) But unfortunately, there is no similar function in ASP (VB Script). But we can create that function, store it in a file and call that from any file as an include. Here is the function: FUNCTION IIF(valToCheck, trueAns, falseAns) IF valToCheck THEN IIF = trueAns ELSE IIF = falseAns END IF END FUNCTION If anybody has any questions, pls. let me know. Looking forward to share useful functions with other members on TP.

Posted by: Mr Suresh KVS At: 15, Sep 2004 1:13:16 AM IST
  Page: 1 of 1    
 
Advertisements
Advertisements
Advertisements
Beauty and Skin Care
For all your favorite branded products of Beauty, Skin Care, Perfumes, Makeup and more!
News
Headline News
Cinema News
Business
Special Stories
Devotion
NRI News
Social Media
Facebook
Movie Gallery
Devotional Gallery
Twitter
Photo Galleries
News Gallery
Cinema Gallery
Beauty Gallery
Fashion Gallery
Sports Gallery
Travel Gallery
Devotion
Classifieds
Jobs
Real Estate
Automobile
Personals

Search TeluguPeople.com

(C) 2000-2025 TeluguPeople.com, All Rights Reserved.