how to compare user defined datatypes

P

Peter Ramsebner

Hi all,

do i have to compare each element separately, or can i compare the variables
directly?

for example:

type Person
vorname as string
lastname as string
end type


dim p1 as person
dim p2 as person

p1.vorname=...
p1.lastname=...
p2.vorname=...
p2.lastname=...

if p1 is p2 then .....
somethink like this doesn't work:
is there a way to handle it this way?


Thanks,

Peter
 
Top