How was it "retrieved from the list"?  Could
you give the code here?

-- 
-Richard M. Hartman
[EMAIL PROTECTED]

186,000 mi./sec ... not just a good idea, it's the LAW!


> -----Original Message-----
> From: Palm Dev Forum [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 07, 1999 11:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Database problems???? 
> 
> 
> Thanks,
> 
> I'm sure the list will be very helpful with future problems. 
> But the error
> was 519 which according the err list is dmErrCantFind...... 
> This does not
> seem right. If we hard code the db name, it is found with no 
> problems. If we
> use a CharPtr that was retrieved from the list, it does not 
> find it??? Am I
> wrong? Does DmFindDatabase(Cardnumber, CharPtr) want 
> something besides a
> CharPtr?
> 
> Again, any help would be a life saver. I have hit a brick wall here.
> 
> Alex
> 
> 
> ----- Original Message -----
> From: "Dave Lippincott" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 07, 1999 2:18 PM
> Subject: Re: Database problems????
> 
> 
> > error code 513 == dmErrMemError
> >
> > get your handy-dandy error code list from
> > http://www.quartus.net/files/PalmOS/Forth/Docs/errlist.zip 
> (compliments of
> > Neal Bridges)
> > It lists common OS3.x errors in decimal, hex and English!
> > Why bother searching boring .h files
> > get it now for the low price of $free
> >
> > guess I've been watching too many info-mercials lately...
> >
> > -----Original Message-----
> > From: Palm Dev Forum <[EMAIL PROTECTED]>
> > To: Palm Developers Forum List <[EMAIL PROTECTED]>
> > Date: Tuesday, December 07, 1999 1:11 PM
> > Subject: Database problems????
> >
> >
> > > Hello,
> > >
> > > I have 2 popuplists on a form. The first list is filled 
> from a database
> > > containing the list items. When a user selects an item the program
> should
> > > open a database that has the same name as the list item 
> selected (this
> is
> > > working fine). Then it
> > > should fill the second popuplist with everything in the 
> database (this
> is
> > >not
> > > working). The
> > > problem that i am having is opening the database with the 
> name from the
> > > list. According to the SDK DmFindDatabase needs the card 
> number and a
> > > character
> > > pointer. The card number is 0, and the CharPtr is 
> retrieved from the
> list.
> > > If i display the CharPtr in a messagebox it displays the correct
> selection
> > > (ie.. the name of the database),
> > > but for some reason DmFindDatabase does not like it. If 
> we hard code the
> > > database name into DmFindDatase it finds it and returns 
> an ID. Also,
> > > DmFinddatabase will return a 0 if it could not open the database.
> > >DmGetLastErr
> > > is supposed to retrieve the error code and shed some 
> light into the
> > >situation.
> > > Well the returned error code is 519, consistantly. What 
> is 519??????? I
> > >have
> > > looked into the DataMgr.h file , but none of the error 
> codes defined
> equal
> > > 519.
> > >
> > > I talked with code warrior because i thought it might be 
> a compiler
> > >problem,
> > > but they were no real help. The guy did say it may be 
> something with the
> > >palm
> > > os. I'm using a palm V with the os that came with it back in June?
> > >
> > >
> > > Any thoughts or help will be greatly appreciated..
> > >
> > >
> > > Alex
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> 
> 

Reply via email to