enter creation password when lookup with qualifiers?

Brian K. White brian at aljex.com
Tue Jan 29 16:08:39 PST 2008


 
> So because of this limitation, currently I have no way to 
> password protect my utility programs for distribution 
> without an end-user being prompted for a creation password.

Did you get what I meant by writing out a process table?

Table A originally wants to lookup a variable file and do some work.
Can the work possibly be collected into a call table and run there?

If so:
* modify table A so that all the dynamic lookup work is done in one or more call tables.
* write a new table B which has a lookup using any file you want or a variable, just so it passes syntax check.
* at runtime table A determines it wants file foo.
* use a little readline/writeline or import/export loop to read table B and generate a new unique temporary table C. This loop can be a nice black box call table itself.
It's small enough to be fine even as a gosub.
* table C contains a litteral lookup to foo in place of whatever table B had
* call C


Result:
o table B can be developed/maintained in cabe naturally
  (no stack of zz="label:if...:then...:" in table A)
o foo can be unknown before runtime
o foo can have a creation password
o user will not get prompted for creation password

Since this is possible, I would say it makes the fp built in feature moot and so might as well be removed. It's not actually protecting anything. Is it? Am I missing something?

Ouch, snag... at run-time the user must either be running dclerk to call the temp table, or have rcabe available to tokenize the temp table before calling it.

I think call is by far the easiest to deal with here, but the same idea could also be done with both chain and system "clerk/report..." if there is some insurmountable problem with call, which is not fixed by fp 5.6 which can nest calls, assuming you can tolerate 5.6's rights management.

Brian K. White    brian at aljex.com    http://www.myspace.com/KEYofR
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro  BBx    Linux  SCO  FreeBSD    #callahans  Satriani  Filk!



More information about the Filepro-list mailing list