* how do I set an icon using a function

Homeless Posts from the old forum system
Locked
avatar
GrahamM
Newbie
Posts: 2
Joined: 16 May 2009 10:06
Family Historian: None

how do I set an icon using a function

Post by GrahamM » 16 May 2009 14:14

I am using V4 upgraded from V3 but have never used functions before.

On diagrams I would like to add an icon to boxes associated to specific facts. For example I would like to see who has a 1901 census fact.

I have many entries with this fact and I don't want to go through them all and set a flag and I would like the icon to appear automatically once I have entered the fact (ie I don't want to have to remember to set a flag each time).

I expected something like:
=ContainsText(Year(%INDI.CENS.DATE%),'1901',STD)

as a condition in diagram>options>boxes, with an appropriate icon, would do it but nothing seems to appear.

=ContainsText(%INDI%,'1901',STD)
shows the icon if 1901 is in the note field (but not if the 1901 census fact only is present) but that is not what I need.

I would be most grateful for any guidance.


ID:3746

User avatar
gerrynuk
Megastar
Posts: 565
Joined: 25 Apr 2007 09:21
Family Historian: V6
Location: Welwyn Garden City
Contact:

how do I set an icon using a function

Post by gerrynuk » 16 May 2009 14:53

Try:

%INDI.CENS[year=1901]%

Gerry

User avatar
PeterR
Megastar
Posts: 1129
Joined: 10 Jul 2006 16:55
Family Historian: V7
Location: Northumberland, UK

how do I set an icon using a function

Post by PeterR » 16 May 2009 14:57

Graham,
You can find Jane's excellent FHUG Flag Tutorial via the How To's menu which can take you to Using Flags and Icons here:
http://www.fhug.org.uk/wiki/doku.php?id ... _and_icons
There is also a link to information about Gedcon Census, which I would strongly recommend. Amongst other things, it can automatically maintain flags for all the censuses.[smile]

avatar
GrahamM
Newbie
Posts: 2
Joined: 16 May 2009 10:06
Family Historian: None

how do I set an icon using a function

Post by GrahamM » 16 May 2009 15:09

Crikey that was quick!

Thanks a lot chaps for the responses.

Gerry - that works - now I just have to figure out why[grin].

Peter - Thanks I'll have al ook at Gedcon Census

Regards
Graham

Locked