GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




JScript help with 'collections'

Click to view RSS...
Author Is it possible to access these fields, one by one, in order to process them in a loop
Posted Tuesday, April 15, 2008 - Post #21375
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Important Contributors
FamilyTrees.GenoPro.com
Customers
Translator
GenoPro version: 2.0.1.6

Last Login: Tuesday, December 16, 2008
Posts: 390, Visits: 1,271
This post is, I suppose, directed to Ron because JScript programming related.
I'm trying to create a utility (similar to 'Display all Comments') regarding display of 'all Multi-Language Fields'.
If I was a 'JScript' guru, it would surely be done by now but I'm not. I also read some WWW Ref sites articles but I couln't found any clear explanations of what I would like to achieve.
For info, I used to be fully conversant for manipulating fields associated with 'relational databases' such as Foxpro. Having said that, I don't master at all your 'Collections' even after reading you various SDK help articles.
What I'm trying to do is to access some fields names (and values) in your various collections.
Say each Ind record in the Ind collection has many fields: name.first, birth.date, birth.place, ...
Question: Is it possible to access these fields, one by one, in order to process them in a loop, e.g.
field(1).name = name.first  ; field(1).value = "Jean-Claude" ; field(1).type = string/text (say the 1st field in an Ind record)
field(2).name = birth.date  ; field(2).value = "7 Mar 1950" ; field(2).type = date
field(3).name = birth.place ; field(3).value = "Paris" ; field(3).type = string/text
... and so on, till the field().count (the last field in that Ind record).
You'll probably have to substitute the words 'record' and 'field' to suit your 'collection' language, i.e. keys and whatever.
The above is perhaps a bit simplistic but I really would like to know if it is achievable! At the moment I cannot 'visualize' the structure of a collection, compared to a database with clear records (rows) and fields (columns).
Thank you.
JC


Edited: Tuesday, April 15, 2008 by GenoProSupport




Reading This Topic

Expand / Collapse
Active: 1 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!