Search found 401 matches

by Ron Melby
22 Sep 2019 17:59
Forum: Plugin Discussions
Topic: sort within a sort
Replies: 5
Views: 564

Re: sort within a sort

earlier it was said this is extensible: function AREASORT(a, b) if a.AREA == b.AREA then return a.GADR < b.GADR end return a.AREA < b.AREA end I need to extend this: AREA (county level of) GADR (grave address) then need sorted by NAME So, all the graves in Kent (ok sort is fine) sorted by cemetery (...
by Ron Melby
14 Sep 2019 21:18
Forum: Plugin Discussions
Topic: delete a file for rebuild
Replies: 8
Views: 261

Re: delete a file for rebuild

thanks, I will investigate that, I am sure there are other useful functions as well.
by Ron Melby
14 Sep 2019 15:52
Forum: Plugin Discussions
Topic: delete a file for rebuild
Replies: 8
Views: 261

Re: delete a file for rebuild

give me a list of most common ancestors most common descendants in my file. one problem I am going to solve. [1039] => (table .2) iddsc => (table #2) [1] => 1049 [2] => 1049 idanc => (table #116) [1] => 1037 [2] => 1050 [3] => 2571 [4] => 2572 [5] => 2001 [6] => 1829 [7] => 1860 [8] => 1900 [9] => 1...
by Ron Melby
14 Sep 2019 15:32
Forum: Plugin Discussions
Topic: I read the scant help and it is not null
Replies: 10
Views: 380

Re: I read the scant help and it is not null

last screen shot I took, and pasted into wordpad, and uploaded it said too big. didnt investigate.
by Ron Melby
14 Sep 2019 13:20
Forum: Plugin Discussions
Topic: delete a file for rebuild
Replies: 8
Views: 261

Re: delete a file for rebuild

I have a record.. some table[rcdid, of the pointer] , anc{rcdid of ancestors}, dsc{rcdid of descendants} fams(rcdid of spouses) famc(rcdid of fam as child) and when I was using pointers which are not savable, I was saving the entire famc and fams entries as arrays of pointers, not concerning myself ...
by Ron Melby
14 Sep 2019 13:05
Forum: Plugin Discussions
Topic: I read the scant help and it is not null
Replies: 10
Views: 380

Re: I read the scant help and it is not null

a close-at-hand example of practical use would be upon such an instant I have been solicited whether or not I have debugged something, and what are the values? The table window is copyable, btw. It would be nice (as well as consistant) if the same were true of the variable window. an additional use,...
by Ron Melby
13 Sep 2019 20:19
Forum: Plugin Discussions
Topic: I read the scant help and it is not null
Replies: 10
Views: 380

Re: I read the scant help and it is not null

copy all the variables in the lower right quadrant debug screen. shift----drag mouse, paste into notepad.

fhPromptUserForRecordSel(pTYPE, 1) indi slt screen. it will gather records from repeated use
by Ron Melby
13 Sep 2019 19:33
Forum: Plugin Discussions
Topic: delete a file for rebuild
Replies: 8
Views: 261

Re: delete a file for rebuild

I have the way there, but its the way back that is holding me at bay. fptr = Record(345, 'F') is that how I get back to a FAM record from a record ID? now, having got back to a FAM record, (and I know whether it is a FAMC, or FAMS) based on its array....and having resolved the INDI pointer.... fhGet...
by Ron Melby
13 Sep 2019 17:46
Forum: Plugin Discussions
Topic: delete a file for rebuild
Replies: 8
Views: 261

delete a file for rebuild

I am using the table module. There are times I want to load up into my program table, which I have saved before, and contains permanant information, but there are times I want to make a new file even if one exists and overwrite it. is there a module I am missing out on or do I build the filename and...
by Ron Melby
13 Sep 2019 17:33
Forum: Plugin Discussions
Topic: I read the scant help and it is not null
Replies: 10
Views: 380

Re: I read the scant help and it is not null

I found it. it wasn't one thing....it was a combination of 4 different things, and 2 different programs. I have been thru that code a million times (its one of my standard modules) and i have refined it and refined it. I have tried for absolute clarity and consistency, but as I upgrade the modules a...
by Ron Melby
12 Sep 2019 01:33
Forum: Plugin Discussions
Topic: I read the scant help and it is not null
Replies: 10
Views: 380

I read the scant help and it is not null

a record: 0 @I24@ INDI 1 NAME Iver Bernard /Gonnering/ ... 1 BURI 2 PLAC Port Huron, , St. Clair, MI, USA 2 ADDR Lakeside Cemetery, 3663 10th Avenue, Port Huron, MI, 48060, USA 2 SOUR @S1944@ 3 PAGE www.findagrave.com/memorial/139142958 1 FAMC @F1260@ 1 FAMS @F17@ ... code that sets up my output. --...
by Ron Melby
06 Sep 2019 17:39
Forum: Plugin Discussions
Topic: standard formatting system
Replies: 0
Views: 207

standard formatting system

I am trying to come up with a system for formatting output data on screen or print: I derive actual length of field in global variables per run via these type of statements, as I am materializing those fields, if a function is not called, the cwfield should not exist. GEDRCD[#GEDRCD].NAME = Name cwn...
by Ron Melby
03 Sep 2019 18:22
Forum: Plugin Discussions
Topic: remove extraneous interior spaces.
Replies: 5
Views: 187

Re: remove extraneous interior spaces.

lol. I am sure I will need help before all is said and done. I had considered str:gsub('%s+' , ' ') but thought it might remove all spaces. although a trim_all might be helpful, leading, interior extraeneous, and trailing spaces removed, would that be something like ('%s+ .-%s+%s+$') or would it req...
by Ron Melby
03 Sep 2019 17:02
Forum: Plugin Discussions
Topic: remove extraneous interior spaces.
Replies: 5
Views: 187

Re: remove extraneous interior spaces.

the reason I am needing this, is after fretting about this problem for months, nay going onto years: the sort value of the built name: Sibley, Joseph Charles Jr. is lower than the sort value of : Sibley, Joseph Charles Sr. I like things in their proper orientation is space-time. Sr. should appear in...
by Ron Melby
03 Sep 2019 16:10
Forum: Plugin Discussions
Topic: remove extraneous interior spaces.
Replies: 5
Views: 187

remove extraneous interior spaces.

I cant get the statement right to gsub thru a string and remove any spaces greater than one from inside the string. that is: ' the quick brown fox jumps over the lazy dog' should be: ' the quick brown fox jumps over the lazy dog' as you know, I overthink and desimplify this stuff massively.
by Ron Melby
02 Sep 2019 19:23
Forum: Plugin Discussions
Topic: sort within a sort
Replies: 5
Views: 564

Re: sort within a sort

Gnarley-- here it is now: function crtDSF(dptr) local xdat = '' local date = '' local year = '' local month = '' local day = '' local dsf = '' dptr = fhGetItemPtr(dptr, '~.DATE') if dptr:IsNull() then return '' end date = fhGetValueAsDate(dptr) xtyp = date:GetSubtype() xdat = date:GetDatePt1() year ...
by Ron Melby
02 Sep 2019 14:50
Forum: Plugin Discussions
Topic: sort within a sort
Replies: 5
Views: 564

Re: sort within a sort

turns out the problem lies elsewhere and is rather arcane: 001 1 _ATTR Civil War, US Army, 1LT, Infantry 002 2 TYPE MILT 003 2 DATE 15 FEB 1864 004 1 _ATTR Civil War, US Army, CPT, Company I 24th WI Infantry Volunteers 005 2 TYPE MILT 006 2 DATE BEF 13 MAR 1865 007 1 _ATTR Civil War, US Army, BVT MA...
by Ron Melby
02 Sep 2019 12:51
Forum: Plugin Discussions
Topic: sort within a sort
Replies: 5
Views: 564

sort within a sort

SIBLEY, Joseph Charles Jr. M (1845 - 1911) 24 Oct 1861 Civil War(18611024) US Army Musician Company G 3rd MN Infantry 1862 Civil War(18620000) US Army 1st MN Cavalry Civil War('') Courts Martial Civil War ('') War Records 2 Sep 1865 Civil War(18650902) mustered out 1 Jan 1864 Civil War(18640101) US...
by Ron Melby
22 Aug 2019 00:53
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1702

Re: sorting tables by v

Name S Dates SVCDate War ARM Rank OTH COVEY, James Jr. (IV) M (1715 - 1782) 1756-1763 French and Indian Wars COVEY, Joseph Sr. M (1754 - 1839) Sep 1775 Revolutionary War Militia PVT COVEY, Kenneth William M (1915 - 1988) WWII US Army TEC5 COVEY, Marvin Clifford M (1894 - 1960) WWI COVEY, Roger L. M...
by Ron Melby
21 Aug 2019 14:58
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1702

Re: sorting tables by v

I am going to try it when I get home. looks like a simple enough deal
by Ron Melby
21 Aug 2019 13:30
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1702

Re: sorting tables by v

Thanks that solved it. the error returned is wrong. running around chasing the wrong error. the upshot is you may not glue up or make the a < b statement a variable it doesn't do recursive gluing. it has to be an 'object' statement so, in my code it will have to be a series of elseifs if dir = '<' t...
by Ron Melby
20 Aug 2019 22:43
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1702

Re: sorting tables by v

USRIDX has 194 entries as I expect, and in the form I expect. The range from 1 to 194 no gaps there are no entries that contain nil nor even '' typical entries are: [5] => (table .2) KLIST => "MELBY, Ronald Nolan 1972-1975 (1954 - )" IDX => 5 [6] => (table .2) KLIST => "NEWTON, Lyle Delane (1952 - 2...
by Ron Melby
19 Aug 2019 16:01
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1702

Re: sorting tables by v

At the outset, way back when I was doing relations and that table build, it became clear that the 'RCD' build you advocated is the way to go, it is far and away number 1. That is why I am changing the operation of my _STD_xxx modules. it will be my way forward. However, until that is done, and in th...
by Ron Melby
17 Aug 2019 23:52
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1702

Re: sorting tables by v

local function karg(tbl) local ct = 0 local ktyp = '' local vtyp = '' local typ = type(tbl) if typ ~= 'table' then return nil end for k, v in pairs(tbl) do ktyp = type(k) vtyp = type(v) if ktyp ~= 'number' then if vtyp == 'table' then ct = ct + 1 elseif vtyp == 'string' then return 1 end end end re...
by Ron Melby
17 Aug 2019 16:21
Forum: Plugin Discussions
Topic: sorting tables by v
Replies: 54
Views: 1702

Re: sorting tables by v

this problem is the most perplexing for me yet. requirement of the function rtv(): all tables involved are [rrn]'blahblahblahyaddayaddayadda' form (arrival, or array, whichever you like) case1 = ({tblName; tblSVC; tblWar; tblDates}) rtx = rtv(case1) case2 = ({tblName;}) rtx = rtv(case2) case3 = tblN...