1 Replies - 396 Views - Last Post: 27 June 2012 - 06:44 AM Rate Topic: -----

#1 gregwestwood  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 27-June 12

Increase numbers within a line of text by a certain number.

Posted 27 June 2012 - 04:20 AM

Hi,

I want to start work on a programme that enables me to edit the below peice of text within an xml file.

<AREA SHAPE=rect COORDS="419,2049,551,2088" HREF="54043" >

1. I want to increase each of the above co-ordinates by 5.

2. In a different scenario I want to INCREASE co-ordinate 419 and 551 by 20

3. In a different scenario I want to DECREASE co-ordinate 2049 and 2088 by 20


The Co-ordinates will vary between file to file, but will always have 4 on account of it being a rectangle.


Any help and pointers to begin would be helpful. There's no code yet, I plan to start later.

Is This A Good Question/Topic? 0
  • +

Replies To: Increase numbers within a line of text by a certain number.

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,960
  • Joined: 21-March 08

Re: Increase numbers within a line of text by a certain number.

Posted 27 June 2012 - 06:44 AM

Closing as it's a duplicate of your topic in C#. Please only post in one forum.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1