MOHAMMEDHABBOUB

I cant understand Visual Basic code in calculating fields based on area, length, etc.

Discussion created by MOHAMMEDHABBOUB on Sep 12, 2011
Latest reply on Sep 15, 2011 by MOHAMMEDHABBOUB
I cant understand Visual Basic code in calculating fields based on area, length, perimeter, etc.

Hello everybody,

well I am a new member here and I really need your help
I want to use Visual Basic code to perform area, length, perimeter, etc.  calculations in the Field Calculator. as below:

To calculate area:

Dim Output as double

Dim pArea as Iarea

Set pArea = [shape]

Output = pArea.area

but I cant understand the previous Visual Basic code in calculating such fields

what is pArea? and why when I replace it to x (as below) the VBA error appears !!!

Dim Output as double

Dim x as Iarea

Set x = [shape]

Output = x.area

and what is Iarea? is it a function in gis ?
plz HELP!!

Outcomes