thanks for the hint but my functions have to return an lp type struct object..

Do I have to return a struct datatype as a pointer ??

Thanks