Swap feature

Would it be possible to add a feature to swap items from one side of the
equals to the other? Something that changes this:

e.Row.Cells[3].Value = data.Month1;
e.Row.Cells[4].Value = data.Month2;
e.Row.Cells[5].Value = data.Month3;
e.Row.Cells[6].Value = data.Month4;
e.Row.Cells[7].Value = data.Month5;

into this:

data.Month1 = e.Row.Cells[3].Value;
data.Month2 = e.Row.Cells[4].Value;
data.Month3 = e.Row.Cells[5].Value;
data.Month4 = e.Row.Cells[6].Value;
data.Month5 = e.Row.Cells[7].Value;

?

Dino


3 comments
Comment actions Permalink

Add request to tracker

"Dean Cleaver" <dean.cleaver@panties.xceptionsoftware.com> wrote in message
news:dhdjd8$b3s$1@is.intellij.net...

Would it be possible to add a feature to swap items from one side of the
equals to the other? Something that changes this:

>

e.Row.Cells[3].Value = data.Month1;
e.Row.Cells[4].Value = data.Month2;
e.Row.Cells[5].Value = data.Month3;
e.Row.Cells[6].Value = data.Month4;
e.Row.Cells[7].Value = data.Month5;

>

into this:

>

data.Month1 = e.Row.Cells[3].Value;
data.Month2 = e.Row.Cells[4].Value;
data.Month3 = e.Row.Cells[5].Value;
data.Month4 = e.Row.Cells[6].Value;
data.Month5 = e.Row.Cells[7].Value;

>

?

>

Dino



0
Comment actions Permalink

Hello Dean,

+1

Sincerely,
Ilya Ryzhenkov


0
Comment actions Permalink

Cool...

I created this for Delphi once with an easy regex replace, very useful
though...

Wiebe

Dean Cleaver wrote:

Would it be possible to add a feature to swap items from one side of the
equals to the other? Something that changes this:

e.Row.Cells[3].Value = data.Month1;
e.Row.Cells[4].Value = data.Month2;
e.Row.Cells[5].Value = data.Month3;
e.Row.Cells[6].Value = data.Month4;
e.Row.Cells[7].Value = data.Month5;

into this:

data.Month1 = e.Row.Cells[3].Value;
data.Month2 = e.Row.Cells[4].Value;
data.Month3 = e.Row.Cells[5].Value;
data.Month4 = e.Row.Cells[6].Value;
data.Month5 = e.Row.Cells[7].Value;

?

Dino

0

Please sign in to leave a comment.