RE: [U2] [UD] UniObjects VB: FIle locks on dictionaries

2004-06-22 Thread Grant.Boice
I personally like the bla-bla line of code. Simple, concise and understandable! (Just teasing!) Grant :oP -Original Message- From: Martin Scholl [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 8:53 AM To: [EMAIL PROTECTED] Subject: [U2] [UD] UniObjects VB: FIle locks

Re: [U2] [UD] UniObjects VB: FIle locks on dictionaries

2004-06-22 Thread Brian Leach
Martin, I just wouldn't do it that way: generating excess calls to the database. Far better to call a subroutine, pass it the name of the file for which you are generating the key, and have that handle the locking and eventual id retrieval. In that way a) you can test the routine from the server

Re: [U2] [UD] UniObjects VB: FIle locks on dictionaries

2004-06-22 Thread mvuser
I've run into this myself. Locking the file AFTER setting the Record ID worked for me, however, I was using a File object, not a Dictionary object. I believe the mechanism is the same in either case. Try: gcolFiles(pstrFileName).RecordID = LAST.ID gcolFiles(pstrFileName).Lock 10: