3
Answers

help copying a file to another directory

mion shion

mion shion

11y
1k
1
ok what im trying to do is copy folder and a lot of sub folders to one directory basically here is a example im mapping for world at war zombies and ported across a lot of black ops 1 and 2 guns to world at war and i want to make a program that will add the folders folders and files into the right areas in waw

http://gyazo.com/9acc3a3e6fc2e5e1a19b0f539cc4934e

basically when those cheakboxes are checked it will move the right folders and files to the right locations in the waw main directory hope this makes sence


thanks

mion
Answers (3)
0
Jan Montano

Jan Montano

NA 2.6k 0 16y
Dang! We're this close! =)

Good luck on your future projects.
0
Chuck Foss

Chuck Foss

NA 7 0 16y

Jan, thank you for the offer to help, but the problem has been reassigned.

Thanks anyway.

Chuck

0
Jan Montano

Jan Montano

NA 2.6k 0 16y
I could not really tell without more details.

Please post some code especially those related to the gridview.

Could you also post the stack trace of the error? that stack trace would really help in solving your problem
0
Chuck Foss

Chuck Foss

NA 7 0 16y

I changed the Int32 to Double. That worked. Thank you.

But, now in the SAVE routine, I'm getting the same error. My code is:

 if (Convert.ToString(gridData.Rows[i - 1][Convert.ToInt32(BillDivColumns.modesal)]) == "H") SaveInput.BILLING_DIV_MEMBER_SET_LIST[i - 1].A_SAL_CNS = Convert.ToInt32(gridData.Rows[i - 1][Convert.ToInt32(BillDivColumns.salary)]) * 100;

I assume the Int32 is causing the problem again. How should this be handled?

 

0
Jan Montano

Jan Montano

NA 2.6k 0 16y

The problem is with the Convert.ToInt32 function call.


int value / 100 will return an integer value.


that is why 785/100 will return 7 for you instead of 7.85.


replace the Convert.ToInt32 with Convert.ToDouble instead.


0
Chuck Foss

Chuck Foss

NA 7 0 16y

No, not currency. I would like the format of  INT 785 to display as 7.85

However, I don't know if this display issue is the cause of the error msg. Do you know?

Thank you.

0
Bechir Bejaoui

Bechir Bejaoui

NA 20.1k 5.3m 16y
do you want to format your column as currency?