[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldsync-hackers] Re: Palm-AddressDB Categories
On Tue, 10 Apr 2001, Shane Owenby wrote:
> Do I have to create the record in the Unfiled category then
> move it to the newly created "Company" category?
> (that seems like a hack...but would work)
Unfortunately, yes. &append_Record puts the new record in the
"Unfiled" category.
After that, it gets uglier, since there are no nice functions to
do a lot of the category-related stuff. You need to manually find the
category, then change the record. Something like the following:
for ($i = 0; $i < Palm::StdAppInfo::numCategories; $i++)
{
if ($pdb->{appinfo}{categories}[$i]{name} eq "Personal")
{
$record->{category} = $i;
}
}
--
Andrew Arensburger Actually, these _do_ represent the
arensb@ooblick.com opinions of ooblick.com!
Generic Tagline V 6.01
--
This message was sent through the coldsync-hackers mailing list. To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body. For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.