本文介绍了选择案例时(选择)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!
问题描述
我正在尝试根据产品类型为产品选择一组不同的结果.因此,如果我的产品应该是一本书,我希望它查找普通产品的 UPC 和艺术家,但这些细节无关紧要,而对于另一个产品,我想要一组完全不同的结果.
I am trying to select a different set of results for a product depending on a product type. So if my product should be a book I want it to look up the UPC and Artist for a normal product these details are however irrelevant and for another product I would want a completely different set of results.
我不确定我哪里出错了
推荐答案
你可以试试 case 语句的其他格式
You Could try the other format for the case statement
参见 http://msdn.microsoft.com/en-us/library/ms181765.aspx 了解更多信息.
See http://msdn.microsoft.com/en-us/library/ms181765.aspx for more information.
这篇关于选择案例时(选择)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!