What is row("Name").ToString(" "c)(0) syntax error?

Hi All,

I have started learning to program in UiPath and in my very first lesson when I try as per the video tutorial I get the error message for the syntax below:
row(“Name”).ToString(" "c)(0) syntax

I use Studio community v.2021.4.x.

image

When I try to search row it doesn’t show me! I hope I am clear enough!

Hi,

Probably it will be as the following.

CurrentRow("Name").ToString.Split(" "c)(0)

Regards,

2 Likes

@Aida_Azar

Welcome to forums

IF you check the For Each row, The row is CurrentRow not the Row
Row usually in old versions, but you are using New version of studio so it is CurrentRow
So CurrentRow(“Name”).ToString
and you are splitting
so .Split(" "c)(0)

CurrentRow(“Name”).ToString.Split(" "c)(0)

Hope this may help you

Thanks

1 Like

Thank you very much, Yoichi.

Seems like I make mistake somewhere!

image

Sorry. Too new to understand compiler errors!

remove secure option from the radio buttons
make Standard

Hope this may helpyou

Thanks

Hi

Can you try to check Standard radio button (not secure)?

Regards,

Thank you very much, Srini84.

I guessed so that it might be the version differences between the tutorial video and my version. However, I still get the error message correcting the syntax.

image

Sorry. Too new to understand compiler errors!

@Aida_Azar

Still it is pointing to Secure, Click on Standard

Thanks

1 Like

Thank you worked now! :slight_smile:

@Aida_Azar

Great!!
Close this thread by clicking on Mark as Solution

Thanks

Hi Srini84

Should I click on Flag and use the description? It is the first time I post something here!

Hi,

Can you check the following post?

Regards,

@Aida_Azar

If you hoever the solution post you can see Mark as Solution

Hope this may help you

Thanks

Sorry I don’t see any solution option under any of the post I get my answer!

Sorry I am not sure what you mean!

Hi,

Now, there seems trouble with Solution mark as the following.

Regards,

1 Like

Seems so thank you :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.