在Array中加载文本并显示在其他网页上 [英] Load text in Array and display on other webpage

查看:56
本文介绍了在Array中加载文本并显示在其他网页上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计我最后一件事需要帮助我无法工作


我得到的错误是:

NullReferenceException未被用户处理代码


对象引用未设置为对象的实例。

Hey Guys i need help with this last thing i cant get to work

The error i get with it is:
NullReferenceException was unhandled by user code

Object reference not set to an instance of an object.

展开 | 选择 | 换行 | 行号

推荐答案

在txtKlantNaam.Text = OfferteArray [4];中,txtKlantNaam为null或数组OfferteArray本身为null。你可以通过一个简单的if测试找出它是哪一个。
In txtKlantNaam.Text = OfferteArray[4];, either txtKlantNaam is null or the array OfferteArray itself is null. You can find out which one it is by a simple if test.


如果它像这样的null那么我就会被嘲笑

Okey i cheked if it whas null like this

展开 | 选择 | Wrap | 行号


不要测试Text属性为null。测试对象本身是否为null,即文本框或标签本身。
Don''t test the Text property for null. Test the objects themselves for null, i.e the text boxes or labels themselves.


这篇关于在Array中加载文本并显示在其他网页上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆