Search found 613 matches

by Ron Melby
23 Oct 2020 17:31
Forum: Plugin Discussions
Topic: table tunnelling.
Replies: 2
Views: 144

Re: table tunnelling.

using magiscule and miniscule correctly is good spelling and it is imprortranth. thanks. immediately apparent when I did that.
by Ron Melby
23 Oct 2020 14:03
Forum: Plugin Discussions
Topic: unnamed table variables
Replies: 6
Views: 223

Re: unnamed table variables

I finally got that working, problems in code beforehand that would not place certain fields in an entry, so as I watched the results it looked like more was missing than should have been. As you said, it works perfectly. Thanks.
by Ron Melby
23 Oct 2020 13:55
Forum: Plugin Discussions
Topic: table tunnelling.
Replies: 2
Views: 144

table tunnelling.

I have a table of tables that looks like this: ANCRCD => (table .1) [37] => (table .9) mdat => "21 October 1951" FAM => "MELBY, Morris Carl and MELBY, (HOOK) Ruth Jeanette" fID => 37 MDAT => "21 Oct 1951" ix => 1 fptr (item) => Family: ...of Morris Carl MELBY and Ruth Jeanette HOOK CHIL => (table #5...
by Ron Melby
22 Oct 2020 13:42
Forum: Plugin Discussions
Topic: unnamed table variables
Replies: 6
Views: 223

Re: unnamed table variables

I did not think of doing it recursively, rather in place loop. thanks, that makes sense. nevertheless, I do not want to kill the table entry, just pointer fields in the table entry. for instance: iPTR (item) => Individual: Adstri OLSDATTER needs to be nil (unless that is also userdata and I suppose ...
by Ron Melby
22 Oct 2020 12:41
Forum: Plugin Discussions
Topic: unnamed table variables
Replies: 6
Views: 223

Re: unnamed table variables

function crtSaveable(tbl) for k, v in pairs (tbl) do _a = type(v) if type(v) == 'userdata' then tbl[k] = nil <<** do not want to kill the entire entry, just fields in the entry so if I get there this changes somehow. end end return tbl end -- fn crtSaveable _a = 'table' and I have the entire entry i...
by Ron Melby
22 Oct 2020 05:39
Forum: Plugin Discussions
Topic: unnamed table variables
Replies: 6
Views: 223

unnamed table variables

local _cs = { fID = _rv.fID, FAM = FAM, MDAT = (_rv.fmdat:GetDisplayText('COMPACT') or ''), ptrHUSB = lnkHUSB:Clone(), hID = fhGetRecordId(ptrHUSB), HNAM = HUSB, ptrWIFE = lnkWIFE:Clone(), wID = fhGetRecordId(ptrWIFE), WNAM = WIFE, CHIL = CHIL } this is a concrete chunk for a table entry. I would li...
by Ron Melby
21 Oct 2020 22:12
Forum: Plugin Discussions
Topic: *solved* require
Replies: 0
Views: 129

*solved* require

perhaps I dont understand require. if I have at the beginning of a program (PGM): require '_STD_MAT' and in the beginning of the program _STD_MAT I have the line require '_STD_RTV' shouldn't all the functions in _STD_MAT and _STD_RTV be available to PGM? or am I misunderstanding the 'Globalness'? so...
by Ron Melby
18 Oct 2020 16:56
Forum: Plugin Discussions
Topic: pattern matching
Replies: 5
Views: 424

Re: pattern matching

rlt = 'wife's grandson's wife' rlt = 'wife's brothers wife' and so on... lets say I have a relation like that in my file. when I scan the string rlt, I want to capture only the second instance of wife. I already can get the first one. in general where there are 2 instances of a word (or partial word...
by Ron Melby
18 Oct 2020 14:39
Forum: Plugin Discussions
Topic: pattern matching
Replies: 5
Views: 424

Re: pattern matching

Mike, you misunderstand me, as I said before its a relation; i.e it is returned from fhBIF 'Relationship' 'TEXT' it is a string, and not family pointers. My mother married twice. first husband they had a daughter. that daughter had a son, and he married. (grandson and wife) my father and mother got ...
by Ron Melby
17 Oct 2020 17:08
Forum: Plugin Discussions
Topic: pattern matching
Replies: 5
Views: 424

pattern matching

wife's grandson's wife lets say I have a relation like that in my file. there are two instances of wife. I want to capture the second one.. it seems like I might need to use string.gmatch but cannot figure it out. currently I use: local _fwife = string.match(_0fr.RLT, '(wife)') and it captures and r...
by Ron Melby
10 Oct 2020 13:36
Forum: General Usage
Topic: Tools working with places
Replies: 4
Views: 427

Re: Tools working with places

a quick and dirty is to sort so you got the zeros together, merge them with each other, leaving one zero place, and then merge it with any other place, selecting the real place you want to keep as the merge into, then they are gone.
by Ron Melby
22 Sep 2020 11:04
Forum: General Usage
Topic: Tools or Tips for Patterns in Research Data
Replies: 11
Views: 1883

Re: Tools or Tips for Patterns in Research Data

a couple of things that I have done, is to (for whatever event) compare place and address to insure they are not 3981.65 miles from one another, which has helped me correct places and addresses for internet GPSing. One thing that has helped me, is to create a plugin that lists who is buried in what ...
by Ron Melby
23 Aug 2020 11:20
Forum: Plugin Discussions
Topic: date, datept, pointer
Replies: 3
Views: 452

Re: date, datept, pointer

thank you, of course its simple when you say it, I was trying hard to avoid errors, when the thing to do in this case is invite the error. I think I have used pcall once before don't remember where, but until you showed it, never thought of how simple and elegant a solution it is.
by Ron Melby
22 Aug 2020 12:28
Forum: Plugin Discussions
Topic: date, datept, pointer
Replies: 3
Views: 452

date, datept, pointer

I have a function that should accept a single variable as parm. its type can be: date object datepoint object pointer if it is a pointer, I can test it easily. vartyp = fhGetValueType(var) varcls = fhGetDataClass(var) ptrtype = fhGetTag(var) if it is a date or datepoint, not so easily they must be p...
by Ron Melby
09 Aug 2020 15:59
Forum: Plugin Discussions
Topic: DayNumber inversion?
Replies: 11
Views: 911

Re: DayNumber inversion?

ah, I get it now, I just couldnt incorporate the step from datept to date to text. I read on datept and date for a day in the help and couldnt connect it. thanks.
by Ron Melby
09 Aug 2020 15:18
Forum: Plugin Discussions
Topic: DayNumber inversion?
Replies: 11
Views: 911

Re: DayNumber inversion?

lnkCHIL = fhGetItemPtr(ptr, '~.CHIL') while lnkCHIL:IsNotNull() do n = n - 1 ptrCHIL = fhGetValueAsLink(lnkCHIL) dptr = fhGetItemPtr(ptrCHIL, '~.BIRT.DATE') -- :YEAR if dptr:IsNotNull() then xdat = fhGetValueAsDate(dptr) xdat = xdat:GetDatePt1() dsf = 280 * n date = fhCallBuiltInFunction('CalcDate',...
by Ron Melby
08 Aug 2020 23:38
Forum: Plugin Discussions
Topic: DayNumber inversion?
Replies: 11
Views: 911

Re: DayNumber inversion?

oh no, you misunderstand, I have already done the what to do, when we built (mostly you) my date sort function. I just liked the shortcut of: b4 = get date from child[x] est = fhcallbif(DayNumber, , -280 * x) dat = fhcallbif(Inverse, est) _cs = {fID=getrcdid(fptr), dsf = est, mdat = dat} sort of thi...
by Ron Melby
08 Aug 2020 20:53
Forum: Plugin Discussions
Topic: DayNumber inversion?
Replies: 11
Views: 911

Re: DayNumber inversion?

from the documentation: A date. If the date specifies a year, but no month, it will betreated as month 1. If it does not specify the day, it will betreated as day 1. This would not be the first case of documentation not adhering to the specification. if I could do the inverse I could get daynumber a...
by Ron Melby
08 Aug 2020 16:35
Forum: Plugin Discussions
Topic: DayNumber inversion?
Replies: 11
Views: 911

Re: DayNumber inversion?

Mike,

That is what I am using now, and now we have the issue confronting us. the DayNumber will calc from 1-1 if not present, plus I can kill two birds with one stone if there was an inversion.
by Ron Melby
08 Aug 2020 13:56
Forum: Plugin Discussions
Topic: DayNumber inversion?
Replies: 11
Views: 911

DayNumber inversion?

let us say I code: bd = fhGetValueAsDate(ptrindi, '~.BIRT.DATE') fred = fhCallBuiltInFunction('DayNumber', bd) fred = fred - 280 what is the inverse function to return a date from days_since_1? newdate = fhCallBuiltinFunction('????????????', fred) I cannot find it, or cannot at least fathom it. or i...
by Ron Melby
04 Aug 2020 18:39
Forum: Importing and Exporting
Topic: Do TMG Custom Tags go to FH Attributes or Events?
Replies: 13
Views: 1254

Re: Do TMG Custom Tags go to FH Attributes or Events?

if you want to know all tags in your gedcom, and how many copy this making a plugin: standard tags have no prefix. EVEN tags prefixed by EVEN- ATTR tags prefixed by _ATTR- local tTAG = {} function rtvTAGS(ptr) local ptrTAG = fhNewItemPtr() local ptrENT = fhNewItemPtr() ptrENT:MoveToFirstChildItem(pt...
by Ron Melby
25 Jul 2020 14:40
Forum: Plugin Discussions
Topic: Lua and IUP et al in version 7
Replies: 2
Views: 1483

Lua and IUP et al in version 7

I cannot post on the Orde announcement, and I have read Eastman's blog as well and scanned various and sundry posts here as well as there, and cannot find what will be done about getting Lua and IUP into the 90's. There are some insiders here, and other very knowlegable and expert users, does anyone...
by Ron Melby
09 Jul 2020 13:17
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 4234

Re: IUP again

I work in ZeroBrane.
forgetting to save before running....I feel so cheap.

I see the difference from splitting them, wonder why the double v and h box.
by Ron Melby
09 Jul 2020 12:28
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 4234

Re: IUP again

that is no change.

fn_keys in the dialog alone runs fine.
sfl in the dialog alone or with fn_keys runs fine, but no fn_keys shown.
if I put fn_keys before sfl, I am presented with an altogether blank dialog just title and box to size.
by Ron Melby
09 Jul 2020 11:49
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 4234

Re: IUP again

229: sysval = crtgbox() 128: local sfl = iup.vbox{iup.scrollbox{sysval}} 151: local fn_keys = iup.hbox{btn_ok, btn_cancel} each respectively, sfl and fn_keys, is wrapped in another vbox and hbox inside the dialog. no change in operation. if I have sfl only in the dialog it shows and runs if I have f...