---------- Original Message ----------- From: Toby Speight <t.m.speight...@cantab.net> Sent: Mon, 12 Oct 2009 16:46:04 +0100
> As you say, the cdr isn't a string - in fact it's a list containing a > vector. To access a vector, you need to use `aref' - example: > > /-------- > | (let ((field (bbdb-current-field))) > | (if (not (eq 'phone (car field))) > | (error "Cannot dial %s" (car field))) > | (let ((location (aref (car (cdr field)) 0)) > | (name (aref (car (cdr field)) 1))) > | (message "Dialling %s (%s)" name location))) > \-------- Thanks for the code sample, I was experimenting with aref and couldn't get it right, but this showed me the direction, I'll spend some time now playing with different code approaches to get it work. Best regards, 白い熊 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/