>* ioDocuments_Access() >* 1 and 1/2 way: >WITH THIS > IF NOT ISNULL(.ioServer) && Word automation server open etc > STORE .ioServer.Documents TO .ioDocuments > ELSE > STORE .NULL. TO .ioDocuments > ENDIF >ENDWITH >RETURN This.ioDocuments >>
>> >>* ioDocuments_Access() >>* first way: >> >>WITH THIS >> >>IF NOT ISNULL(.ioServer) && Word automation server open etc >> STORE .ioServer.Documents TO .ioDocuments >>ELSE >> STORE .NULL. TO .ioDocuments >>ENDIF >> >>ENDWITH >> >>RETURN >> >>** second way, return the reference instead >> >>LOCAL loDocuments >> >>IF NOT ISNULL(.ioServer) >> STORE .ioServer.Documents TO loDocuments >>ELSE >> STORE .NULL. to loDocuments >>ENDIF >> >>ENDWITH >> >>RETURN (loDocuments) >> >>>>