| |

VerySource

 Forgot password?
 Register
Search
View: 769|Reply: 5

ASP.NET dynamic array

[Copy link]

7

Threads

15

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 Invalid IP Address

Post time: 2020-2-12 16:30:01
| Show all posts |Read mode
dim a = "hh, bb, cc"
How do I use "," to divide into dynamic arrays?
Because a is not necessarily so many strings
Or a solution without arrays?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Hong Kong

Post time: 2020-4-12 10:45:01
| Show all posts
C #:
string a = "hh, bb, cc";
string [] b = a.Split (',');
Reply

Use magic Report

7

Threads

15

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 Invalid IP Address

 Author| Post time: 2020-4-12 14:00:02
| Show all posts
Is there any VB.NET syntax?
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-4-12 18:45:01
| Show all posts
dim a = "hh, bb, cc"
Dim b () As String
b () = Split (a, ",")
Reply

Use magic Report

0

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 Unknown

Post time: 2020-4-14 14:30:01
| Show all posts
Split
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-21 17:45:01
| Show all posts
string a="hh,bb,cc";
string[] b=a.Split(',');
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list