一个字符串变量 [英] a string variable

查看:121
本文介绍了一个字符串变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨组,


我正在尝试这样做:

String DatVandaag;

DatVandaag = DateTime。 Today.AddDays(-2).ToString(" dd / MM / yyyy");

LiteralHeat.Text ="< center>< H5> Wekelijkse vinyl TOP 10

(" + DatVandaag +")< / center>< / H5>< br>< br>" ;;

我收到以下错误:使用未分配的局部变量''DatVandaag''


有人可以帮助我做什么吗?


提前Thx!
< br $>
grz

Bernie V

-
http://www.djberniev.be

Hi group,

I''m trying to do this:
String DatVandaag;
DatVandaag=DateTime.Today.AddDays(-2).ToString("dd/MM/yyyy");
LiteralHeat.Text = "<center><H5>Wekelijkse vinyl TOP 10
("+DatVandaag+")</center></H5><br><br>";
I get the following error: Use of unassigned local variable ''DatVandaag''

Can somebody help me what I do worng ?

Thx in advance !

grz
Bernie V
--
http://www.djberniev.be

推荐答案

我没有收到错误你描述过。也许你遗漏了一些代码。


试试这个字符串DatVandaag = String.Empty;


-

问候,

Alvin Bruney [ASP.NET MVP]

得到花絮?在此处获取...
http://tinyurl.com/3he3b

" Bernie V" < bernd.vantyghem@pandoradotbe>在消息中写道

新闻:eB ************** @ TK2MSFTNGP11.phx.gbl ...
I''m not getting the error you described. Maybe you have left out some code.

Try this String DatVandaag = String.Empty;

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Bernie V" <bernd.vantyghem@pandoradotbe> wrote in message
news:eB**************@TK2MSFTNGP11.phx.gbl...
嗨组,

我正在尝试这样做:
String DatVandaag;
DatVandaag = DateTime.Today.AddDays(-2).ToString(" dd / MM / yyyy");
LiteralHeat.Text ="< center>< H5> Wekelijkse vinyl TOP 10
(" + DatVandaag +")< / center>< / H5>< br>< ; br>" ;;
我收到以下错误:使用未分配的局部变量''DatVandaag''

有人可以帮我解决问题吗?
Thx提前!

grz
Bernie V

-
http://www.djberniev.be
Hi group,

I''m trying to do this:
String DatVandaag;
DatVandaag=DateTime.Today.AddDays(-2).ToString("dd/MM/yyyy");
LiteralHeat.Text = "<center><H5>Wekelijkse vinyl TOP 10
("+DatVandaag+")</center></H5><br><br>";
I get the following error: Use of unassigned local variable ''DatVandaag''

Can somebody help me what I do worng ?

Thx in advance !

grz
Bernie V
--
http://www.djberniev.be



string DatVandaag


String DatVandaag

-

Curt Christianson

所有者/首席开发人员,DF -Software
www.Darkfalz.com

" Bernie V" < bernd.vantyghem@pandoradotbe>在消息中写道

新闻:eB ************** @ TK2MSFTNGP11.phx.gbl ...
string DatVandaag

String DatVandaag

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Bernie V" <bernd.vantyghem@pandoradotbe> wrote in message
news:eB**************@TK2MSFTNGP11.phx.gbl...
嗨组,

我正在尝试这样做:
String DatVandaag;
DatVandaag = DateTime.Today.AddDays(-2).ToString(" dd / MM / yyyy");
LiteralHeat.Text ="< center>< H5> Wekelijkse vinyl TOP 10
(" + DatVandaag +")< / center>< / H5>< br>< ; br>" ;;
我收到以下错误:使用未分配的局部变量''DatVandaag''

有人可以帮我解决问题吗?
Thx提前!

grz
Bernie V

-
http://www.djberniev.be
Hi group,

I''m trying to do this:
String DatVandaag;
DatVandaag=DateTime.Today.AddDays(-2).ToString("dd/MM/yyyy");
LiteralHeat.Text = "<center><H5>Wekelijkse vinyl TOP 10
("+DatVandaag+")</center></H5><br><br>";
I get the following error: Use of unassigned local variable ''DatVandaag''

Can somebody help me what I do worng ?

Thx in advance !

grz
Bernie V
--
http://www.djberniev.be



嗨Curt,


我改变了它,但它仍然会出现同样的错误(使用未分配的本地

变量''DatVandaag'')


grz

Bernie V

-
http://www.djberniev.be

" Curt_C [MVP ]" < software_AT_darkfalz.com> schreef in bericht

news:u
Hi Curt,

I changed it, but it get still the same error (Use of unassigned local
variable ''DatVandaag'')

grz
Bernie V
--
http://www.djberniev.be
"Curt_C [MVP]" <software_AT_darkfalz.com> schreef in bericht
news:u


这篇关于一个字符串变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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