开发者

What is the function for returning part of a character, binary, text, or image expression in c# in Windows mobile?

开发者 https://www.devze.com 2023-03-08 09:44 出处:网络
What is the function for returning part of a character, binary, text, or image expression in C# in Windows mobile? Because Substring() f开发者_运维知识库unction does not work in Windows Mobile.Substri

What is the function for returning part of a character, binary, text, or image expression in C# in Windows mobile? Because Substring() f开发者_运维知识库unction does not work in Windows Mobile.


Substring is apparently supported by most mobile frameworks. From MSDN:

Supported By

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.


If you want a character from a string you can try:

string str="abc";
char firstChar=str[0];
0

精彩评论

暂无评论...
验证码 换一张
取 消