Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:总是提示不能为空s

1楼
ycs5801 发表于:2024/8/5 12:07:00
Dim e As RequestEventArgs = args(0)
Dim wb As New weui
'Dim sb As New StringBuilder
wb.AppendHTML("<link rel='stylesheet' href='./weui/exweui.css'/>", True) 
wb.AppendHTML("<script src='./weui/exweui.js' ></script>", True)
Dim jo As JObject = JObject.Parse(e.PlainText) '解析JSON数据
Dim openid As String = jo("openid").ToString()
Dim kcmc As String = jo("kcmc").ToString()
Dim kclb As String = jo("kclb").ToString()
Dim skls As String = jo("skls").ToString()
Dim sksd As String = jo("sksd").ToString()
Dim skrq As String = jo("skrq").ToString()
。。。
。。。

某个函数的开头是这样,总是会偶尔跳出错误,提示不能为空,请问应该怎样加一个判断语句,避免传值过来为空?
2楼
有点蓝 发表于:2024/8/5 13:47:00
if e.PlainText > ""
    Dim jo As JObject = JObject.Parse(e.PlainText) '解析JSON数据
共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02637 s, 2 queries.