Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing the NotesSession Object in Lotus Notes
Message
From
16/11/2001 14:59:18
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00581093
Message ID:
00582933
Views:
25
Larry,

I enjoyed your rant and agree with it 200%. At first I used to get very frustrated, then I just cashed the checks that resulted from expensive, disfunctional Lotus Notes apps needing to be ported to VFP or VB.

Malcolm


>>I have another issue at hand:
>>
>>Before an email is sent, I need to check the email address (stored in a variable) against the database (names.nsf) to make sure it is valid.
>>
>>loNotes = CreateObject("Lotus.NotesSession") && create notes session
>>loNotes.initialize("password") && initialize session
>>loDb = loNotes.Getdatabase("//server090/M/DCF","names.nsf")
>> >>I get an error when i try to get the view "the database is not open"
>>loContact = loDb.GetView("People")
>>
>>1.What logic should be used to perform this check and would be faster (i.e.,copy the view to the local machine and check against that or check agaist the database, names.nsf,directly on the server)
>>
>
>You can use the Type() function to check and see if you have an object. You can use it to verify a property of that object before accessing one of its methods.
>
>if type("loDb.Name") = "C" then    && go ahead and access it
>
>I haven't been able to check the syntax out (I haven't had a chance to set up a server, only dev tools). Do you need the double / on the front of the server string. I thought Notes servers were accessed using X.500 hierachical naming conventions.
>
>Server/Group/Domain
>
>There was nothing needed on the front.
>
>>You seem to be the Expert with Lotus, so thank you for sharing your time and knowledge!
>
>I am by no means an expert.
>
>< SET RANT ON >
>When I first started with Notes in v3, I was ranting at anyone who would listen that Notes shouldn't be used for anything other than e-mail and document storage. The @ macro programming language was taken diretly from Lotus 1-2-3 and it sucked. When v4 came out and LotusScript was introduced, I finally had something that I would call a programming language/environment. Of course, it was a complete rip-off of VBA with some Notes extensions, but I didn't care about that. With the improvements that Lotus/IBM have made over the last few years, Notes/Domino is really a nice environment. It still has its niche, but that niche is bigger than it was.
>
>I just wish people wouldn't try to throw everything in Notes. It's not (and never will be) a relational database so people shouldn't treat it like one.
>< SET RANT OFF >
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Previous
Reply
Map
View

Click here to load this message in the networking platform