Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Meenachi Suppiah   on Aug 20 In Asp.net Category.

  
Question Answered By: Mike Stephens   on Aug 20


dim intrecs=myDataResults.RecordsAffected()
formMessage.Text = switch(intrecs=0,"Database exists.",intrecs=1,"Database created.")

or better yet

dim intrecs=myDataResults.RecordsAffected()
formMessage.Text = choose(intrecs+1,"Database exists.","Database created.")

This is why everyone should own "VB.net in a Nutshell" to learn VB.net syntax well
www.amazon.com/.../learnasp

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Database Messages Or get search suggestion and latest updates.


Tagged: