Search found 917 matches

by Ron Melby
12 Feb 2024 23:21
Forum: General Usage
Topic: Downloading
Replies: 7
Views: 733

Re: Downloading

we first need to know what the extension of the document is. likely Opera became the default opener.
by Ron Melby
23 Jan 2024 13:00
Forum: Programming Technicalities
Topic: what is all this then?
Replies: 8
Views: 960

Re: what is all this then?

Precisely my point at the outset Mike. I can by the nefarious means of inspection and counting by hand say: she is -1 therefore her father is -2 and her grandfather -3 from me, the root; at 0, and install that in a table, and by that same process, do all other non-relations in pool 1. The other pool...
by Ron Melby
22 Jan 2024 18:05
Forum: Programming Technicalities
Topic: what is all this then?
Replies: 8
Views: 960

Re: what is all this then?

GEN = fhCallBuiltInFunction('RelationCode', QY_ROOT, iptr, 'Generation', ix or 1) -- or -100 go to your grandfather on your fathers side, pick a brother, then his son, that should put you and him at -1 if you are QY_ROOT and he is iptr, or vice versa. now go to his wife, which also should be generat...
by Ron Melby
22 Jan 2024 16:29
Forum: Programming Technicalities
Topic: what is all this then?
Replies: 8
Views: 960

Calculating a generational offset

same program but slightly different topic. I have a sister. her generational offset from me is 0, her husbands is also 0. fh calculates no generational offset to his parents, brothers, sisters, --- in short his kin. logically the generational offset between his parents and me is -1 we are all in poo...
by Ron Melby
22 Jan 2024 13:51
Forum: Programming Technicalities
Topic: what is all this then?
Replies: 8
Views: 960

Re: what is all this then?

after all day and almost all night yesterday of small changes here and there to debug and correct code and find this problem (likely compiled it several hundred times) I closed everything out and went to bed. I tried it this morning to try and better explain what is going on, no changes, it works. c...
by Ron Melby
22 Jan 2024 03:59
Forum: Programming Technicalities
Topic: what is all this then?
Replies: 8
Views: 960

what is all this then?

this is below lua 101 like 1st form lua, but I am not getting it. code snip and some table entries fID is the record id of a FAM record. 2. DEQ.fID 2217 is NEQ FAMLIMIT[DEQ.fID] 37 1 DEQ = QFAM:deQ() 2 if not FAMLIMIT[DEQ.fID] then xptr:MoveToRecordById('FAM', DEQ.fID) local ptrFAM = xptr:Clone() --...
by Ron Melby
18 Jan 2024 14:30
Forum: General Usage
Topic: How can I Multiply DnaRelatedness by a Number
Replies: 3
Views: 536

Re: How can I Multiply DnaRelatedness by a Number

those formulas are not my forte but will this work?

=Calc( (DnaRelatedness(FileRoot(), %INDI%) or 0) * 6900
by Ron Melby
11 Jan 2024 16:47
Forum: Programming Technicalities
Topic: addressing an interior array
Replies: 1
Views: 508

addressing an interior array

I am once again flummoxed. I am trying to find and correct errors in my gravesites. I find them and have them in GEDRCD I then strip out the memmorial id from gravminer, digitalarkkivet or findagrave. now I want to look for duplicates: for k, _ in ipairs(GEDRCD) do this = GEDRCD[k] _dup[this.MML] = ...
by Ron Melby
30 Dec 2023 16:33
Forum: Programming Technicalities
Topic: IUP (tearing out non-extant hair)
Replies: 10
Views: 955

Re: IUP (tearing out non-extant hair)

From: Antonio Scuri 2008-10-29 12:57:36 Unfortunately yes, you have to do it in a callback. Best, scuri > -----Original Message----- > From: fla...@te... [mailto:fla...@te...] > Sent: segunda-feira, 27 de outubro de 2008 15:01 > To: iup...@li... > Subject: [Iup-users] IupMatrix Inactive cells > > Is...
by Ron Melby
30 Dec 2023 12:21
Forum: Programming Technicalities
Topic: IUP (tearing out non-extant hair)
Replies: 10
Views: 955

Re: IUP (tearing out non-extant hair)

function crt_matrix() -- header mat:setcell(0, 0, 'Slt') mat:setcell(0, 1, 'Color') mat:setcell(0, 2, 'Name') mat:setcell(0, 3, 'r') mat:setcell(0, 4, 'g') mat:setcell(0, 5, 'b') mat:setcell(0, 6, 'h') mat:setcell(0, 7, 's') mat:setcell(0, 8, 'l') mat:setcell(0, 9, 'xrgb') mat['BGCOLOR*:0'] = '255 ...
by Ron Melby
28 Dec 2023 15:39
Forum: Programming Technicalities
Topic: IUP (tearing out non-extant hair)
Replies: 10
Views: 955

Re: IUP (tearing out non-extant hair)

-- require 'QSYS' require('iuplua') require('iupluacontrols') -- https://www.tecgraf.puc-rio.br/iup/en/ctrl/iupmatrix_attrib.html#Cell_Attributes -- local _C = {} -- local cfp = ('%s%s'):format(__ipath.global(), '_C.dat') -- cfp, _C = rtvTBL(cfp) local _C = { [1] = {["name"] = "_blac...
by Ron Melby
28 Dec 2023 13:13
Forum: Programming Technicalities
Topic: IUP (tearing out non-extant hair)
Replies: 10
Views: 955

Re: IUP (tearing out non-extant hair)

the reason there is extra sugar in the array entries is they are copied out of the serialized table on disk. I have corrected the other things, but it was never clear to me (and thats why I have the directions commented in there and asked the question here, how do I do color. So, it is a two step pr...
by Ron Melby
28 Dec 2023 00:21
Forum: Programming Technicalities
Topic: IUP (tearing out non-extant hair)
Replies: 10
Views: 955

Re: IUP (tearing out non-extant hair)

-- require 'QSYS' require('iuplua') require('iupluacontrols') -- https://www.tecgraf.puc-rio.br/iup/en/ctrl/iupmatrix_attrib.html#Cell_Attributes -- local _C = {} -- local cfp = ('%s%s'):format(__ipath.global(), '_C.dat') -- cfp, _C = rtvTBL(cfp) local _C = { [1] = {["name"] = "_blac...
by Ron Melby
27 Dec 2023 14:07
Forum: Programming Technicalities
Topic: IUP (tearing out non-extant hair)
Replies: 10
Views: 955

Re: IUP (tearing out non-extant hair)

well, drag me kicking and screaming into matrixes then. how can I make the color boxes in a matrix?
by Ron Melby
27 Dec 2023 04:49
Forum: Programming Technicalities
Topic: IUP (tearing out non-extant hair)
Replies: 10
Views: 955

IUP (tearing out non-extant hair)

quire('iuplua') require('iupluacontrols') local _C = { [1] = {["name"] = "_black", ["S"] = 0, ["L"] = 0, ["H"] = 0, ["xrgb"] = "#000000", ["rgb"] = {[1] = 0, [2] = 0, [3] = 0,},}, [2] = {["name"] = "_Fore...
by Ron Melby
15 Dec 2023 22:51
Forum: Closed Wish List Requests
Topic: [Wish List Item 635] Better ways to find where records are used
Replies: 28
Views: 1920

Re: Better ways to find where records are used

may be a way to go, sort of like it is done in movetorecordid or whatever that one is movetorecordid(2024, 'FAM') LINKS.~SOUR[n] for all Source links. LINKS.~SOUR.~CITE[n] for just Citation links. LINKS.~OBJE.~OBJE[n] for all Media links. LINKS.~NOTE.~NOTE[n] for shared Note links. LINKS._RNOT.~_RNO...
by Ron Melby
07 Dec 2023 00:01
Forum: Programming Technicalities
Topic: lua strings and long comments
Replies: 18
Views: 1045

Re: lua strings and long comments

things giving me fits right now, in that vscode: do I haul in all the scripts that work together as a workspace? it does not seem to me that if they exist in the workspace, they are treated as 'protos'.... i.e: (cut to the quick, assume all the junk is there to standalone compile each QSYS_MAT funct...
by Ron Melby
29 Nov 2023 22:49
Forum: Programming Technicalities
Topic: lua strings and long comments
Replies: 18
Views: 1045

Re: lua strings and long comments

re: Mike. in the situation that failed but compiled in ZB... I run the plugin and it gives something like line 2. unexpected symbol near '*'. the compiler must have made it to the second ]] to raise the error. and it is supposed to be a COMMENT anyway, why is the interior being investigated? I could...
by Ron Melby
29 Nov 2023 13:22
Forum: Programming Technicalities
Topic: lua strings and long comments
Replies: 18
Views: 1045

Re: lua strings and long comments

Ja, no. been there done that. I have not been following a discussion on the list. Literal strings can also be defined using a long format enclosed by long brackets. We define an opening long bracket of level n as an opening square bracket followed by n equal signs followed by another opening square ...
by Ron Melby
29 Nov 2023 00:55
Forum: Programming Technicalities
Topic: lua strings and long comments
Replies: 18
Views: 1045

lua strings and long comments

a string can be made like this [[ ........... whole bunch of stuff]] however compiler and zerobrane dont actually treat it as a whole string and comment like things and code descriptions can throw it off. [=[ ]=] will stop that, and it compiles as string I have seen --[[ ]] for long comments and sam...
by Ron Melby
21 Nov 2023 21:24
Forum: Plugin Technical Support & Development
Topic: Map Life Facts plugin
Replies: 13
Views: 1447

Re: Map Life Facts plugin

and that is what I am trying to figure is scope.

version_of_something = 5.9.1
local another

general_v3 (the whole thing)
stringx_v3 (the whole thing)
now does this follow normal compiling rules where
global version_of_something and local another are available to general_v3 and stringx_v3?
by Ron Melby
21 Nov 2023 18:25
Forum: Plugin Technical Support & Development
Topic: Map Life Facts plugin
Replies: 13
Views: 1447

Re: Map Life Facts plugin

(I think I am as far as your simple plugin ...) my issue is 'among the several' Here is my confusion at the moment and it might seem arcane, but it is fundamental to understanding for me *** in the explanation below Map Life Facts this is in iup_gui 3102 local function getDataFiles(strScope) -- Comp...
by Ron Melby
21 Nov 2023 14:53
Forum: Plugin Technical Support & Development
Topic: Map Life Facts plugin
Replies: 13
Views: 1447

Re: Map Life Facts plugin

Mike, I am bedeviled. this is too complex to fathom the concept. I cannot debug it such that the fh would match with say, stringx it seems kind of like fh builds as each general. stringx. iter. and so on is called, and eventually fh would contain all the fh modules and variables for all of them, and...
by Ron Melby
19 Nov 2023 20:27
Forum: Plugin Technical Support & Development
Topic: Map Life Facts plugin
Replies: 13
Views: 1447

Re: Map Life Facts plugin

still confused isnt that what
local stringx = stringx_v3() does?
by Ron Melby
19 Nov 2023 18:39
Forum: Plugin Technical Support & Development
Topic: Map Life Facts plugin
Replies: 13
Views: 1447

Re: Map Life Facts plugin

this is a new discussion, but it doesnt seem to need a new thread, since it is about undertanding Map Life Facts, which I am trying to understand, because it seems like useful code for a plugin I am tring to make: 1. local function stringx_v3() -- this returns the function 2. local fh = {} -- Local ...