Search found 606 matches

by Ron Melby
18 Oct 2020 16:56
Forum: Plugin Discussions
Topic: pattern matching
Replies: 5
Views: 334

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: 334

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: 334

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: 388

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: 1840

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: 442

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: 442

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: 874

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: 874

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: 874

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: 874

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: 874

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: 874

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: 1216

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: 1479

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: 4165

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: 4165

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: 4165

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...
by Ron Melby
08 Jul 2020 22:17
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 4165

Re: IUP again

I believe the code I posted did that. I have some other error, and it must be trivial. this is the current code in standalone fashion, I have removed frames, since they did nothing. sfl is a vbox of a scrollbar of a gbox fn_keys is an hbox of two buttons fhSetStringEncoding('UTF-8') iup.SetGlobal('U...
by Ron Melby
08 Jul 2020 09:15
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 4165

Re: IUP again

am I to understand that the frame goes inside the hbox or vbox and not the other way around?
by Ron Melby
07 Jul 2020 18:27
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 4165

Re: IUP again

while everything is fresh, i decided to move to gridbox. the program is very much like the program from the OP. and it is IUP. fhSetStringEncoding('UTF-8') iup.SetGlobal('UTF8MODE','YES') require '_STD_SAVRST' WS_Abort = 'Abort' WS_CANCEL = false WS_Cancel = 'Cancel' WS_ENTER = true WS_Ignore = 'Ign...
by Ron Melby
04 Jul 2020 20:06
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 4165

Re: IUP again

that would explain some issues, but did that, and it was icky, the entire list came up and gone was my frame and gone was my buttons no way to get too them and that was with the number 12 the iup did not respect that. so I went back to the way I had working, and I think that for now, I can live with...
by Ron Melby
04 Jul 2020 18:04
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 4165

Re: IUP again

solved (the code, not the problem of visibleitems not working) with:

size = '164x' although you really dont need the x, the documentation is wrong on this point.
and
dropdown ='no'
visiblelines = '12'
by Ron Melby
04 Jul 2020 16:58
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 4165

Re: IUP again

part of the issue, when I put code out here, I sometimes forget to put up whats in ZB and put up the last change. for every little change I make I have to save a copy, or I will forget what was done (working or no) I always run analyze and then when analyse or compile passes, I format source and the...
by Ron Melby
03 Jul 2020 22:20
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 4165

Re: IUP again

the documentation is wrong prima facie BUTTON_CB is absolutely wrong in its description. I thought this was a place for help. While I cannot offer it often, most being leagues ahead of me coding this trivial language, I go all out. (is that not correct?) Now, I dont need a bunch of labcoats saying d...