Search found 599 matches

by Ron Melby
09 Aug 2020 15:59
Forum: Plugin Discussions
Topic: DayNumber inversion?
Replies: 11
Views: 321

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

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

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

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

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

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: 11
Views: 385

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

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

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

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

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

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

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

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

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

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

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

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...
by Ron Melby
03 Jul 2020 20:45
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 2493

Re: IUP again

confirmed: BUTTON_CB = GetSingleValue(list_tags) called infinitely @ GetSingleValue if rtx == nil then 1>>>iup.MainLoop() end called forever as I found out in DEBUG all values except rtx which == nil and tbl which is now throwaway (like 5 of them, not too many I dont think to debug this right? are--...
by Ron Melby
03 Jul 2020 19:02
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 2493

Re: IUP again

I HAVE DONE MY OWN DEBUGGING. (USERVALUE) I have looked at lots of code, and none is enlightening. It does absolutely nothing with it, because it is called and the program ends, this is unexpected behavior: not that I understand any of this, but CALLBACKS ACTION Action generated when the element is ...
by Ron Melby
03 Jul 2020 16:41
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 2493

Re: IUP again

function sltTAG(tbl) list_tags = crtList(tbl) -- Creates frame with dropdown list and sets its title local rtx local btn_ok = iup.button { name = 'OK', title = 'OK', action = getSingleValue(list) } local btn_cancel = iup.button { name = 'CANCEL', title = 'CANCEL', action = function(self) rtx = self...
by Ron Melby
03 Jul 2020 14:03
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 2493

Re: IUP again

fhSetStringEncoding('UTF-8') function bldTAGS() local ptr = fhNewItemPtr() local ptrENT = fhNewItemPtr() local ptrTAG = fhNewItemPtr() local tbl = {} local tmp = {} ptr:MoveToFirstRecord('INDI') while ptr:IsNotNull() do ptrENT:MoveToFirstChildItem(ptr) while ptrENT:IsNotNull() do ptrTAG:MoveTo(ptrE...
by Ron Melby
03 Jul 2020 12:55
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 2493

Re: IUP again

uuuuuuuuuuuuuuuuuuhhhhhhhhhhhhhhhhhhhhhhhh yeah, ok??????????????????????????????? so how do I receive action? I mimic but I do not understand. I don't have any fundamental frame of reference for this what appears to me to be maismatic spaghetti iup stuff. I know I have to receive action it contains...
by Ron Melby
03 Jul 2020 12:16
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 2493

Re: IUP again

I have resolved the issue with not loading iup.list. and the error was not your code. it initially starts as a blank box with the twistie, and when you poke the twistie the list comes up, I dont see a way to make the first list item show on the intitial screen this is what I am using for documentati...
by Ron Melby
02 Jul 2020 22:37
Forum: Plugin Discussions
Topic: IUP again
Replies: 34
Views: 2493

Re: IUP again

I send into the equivalent of your MakeList(options) tbl => (table #64) [1] => "NAME" [2] => "SEX" [3] => "FAMS" [4] => "BIRT" [5] => "FAMC" [6] => "DEAT" [7] => "BURI" [8] => "SOUR" [9] => "CENS" [10] => "RESI" [11] => "EVEN-OBIT" [12] => "OCCU" [13] => "EVEN-BIO" [14] => "_ATTR-MILT" [15] => "EVEN...