if ddlStatus = ACTIVE then blnStatus = trueelse blnStatus = falseend if 另一个想法是在你的表中有一个StatusID列链接回你的Status表(而不是true / false) - 那个如果您决定添加新状态(说Pending,On Hold或其他),您只需在状态表中添加一个新值即可显示在状态下拉列表中。Another idea would be to have a StatusID column in your table that links back to your Status table (rather than true/false) - that was if you decide to add a new Status (say Pending, On Hold or whatever), you can simply add a new value to your Status table to display in your status dropdown list. 这篇关于与真/假的比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-19 15:50