Mike Meyer;544800 Wrote:
> I was able to get this to work today so I'll play around with that some
> more.
>
> Can you give me some help on calling the addCustomSportScore
> subroutine? The hash ref is new to me so nothing I pass in to it is
> working. Kept getting the 'Can't use string in hash ref' error or
> something like that.
>
> Adding the PGA icon to the Extras menu works great.
>
> Thanks.
I tried the custom macro integration with CustomClock yesterday too and
it worked as expected.
I switched to the hash ref as it's more efficient. Instead of Perl
making a copy of each data element in memory it just sends a single ref
to the entire hash.
Example:
Code:
--------------------
my %mikeHash;
$mikeHash{'sport'} = 'Soccer';
$mikeHash{'gameID'} = 'Game1';
$mikeHash{'gameTime'} = '2:00pm';
$mikeHash{'homeTeam'} = 'USA';
$mikeHash{'homeScore'} = 5;
$mikeHash{'awayTeam'} = 'Brazil';
$mikeHash{'awayScore'} = 1;
# optional team logos...
addCustomSportScore(\%mikeHash);
--------------------
Hope this helps.
-Greg
--
GoCubs
------------------------------------------------------------------------
GoCubs's Profile: http://forums.slimdevices.com/member.php?userid=312
View this thread: http://forums.slimdevices.com/showthread.php?t=77864
_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive