* *solved* require

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
User avatar
Ron Melby
Megastar
Posts: 928
Joined: 15 Nov 2016 15:40
Family Historian: V6.2

*solved* require

Post by Ron Melby »

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'?

sorted. a local function caught me out. I debugged and scanned thru _G: rtv* functions were in there, it has been so long since I have looked inside my _STD_* modules I had forgotten that a function that I had only called from _RTV itself was a local function and I was for the first time in all this mess I make, needing to call it from a program directly.
FH V.6.2.7 Win 10 64 bit
Post Reply