Paradox Community

Items in pnews.paradox-development

Subject:Re: Delivering Question
Date:Mon, 29 Apr 2019 07:15:19 -0400
From:"Steven Green" <greens@diamondsg.com>
Newsgroups:pnews.paradox-development
absolutely.. that's one of the many things I've done with dynarrays over 
time, and often the heart and soul of those 3rd party generic app shells.. 
but the monster I'm working thru now, and many other monsters you get 
handed, many years after the fact, I'm cleaning up one step at a time.. this 
app had no central handling system of any kind, no internal comments or 
instructions, tons of copy/paste/tweak code that's "almost the same", and a 
CMAX numbering system.. one step at a time :-)

--

Steven Green
Myrtle Beach, South Carolina, USA

http://www.OasisTradingPost.com

Collectibles and Memorabilia
Vintage Lego Sets and Parts
- and Paradox support, too
"Tom Krieg"  wrote in message news:5cc645cc@pnews.thedbcommunity.com...

If there's one most useful Paradox thing I picked up from Tony McGuire
is the "Single Method" methodology. Based on Tony's implementation of
the CWS this methodology uses a request/response pair. A form calls a
"HandleMethod" method in a "Handler" library and passes a dynarray of
parameters including the name of the method to be executed (the
request). It returns a dynarray of data as specififed by the request
(the response). Every form just calls the "HandleMethod" method in the
"Handler" library with the exact same parameter types (a dynarray and
returning a dynarray.

eg. libHandler.HandleMethod(dynRequest, dynResponse)

There is a systems table that contains a record for every "real" method,
where the handler method looks up the library name, the "actual" method
name and any input tables or answer tables to be generated. The
"HandleMethod" method passes a global dynarray of parameters to the
appropriate library, including table names, calls "Execmethod" for the
appropriate method in that library and then reads a global dynarray
generated by the method, as the returned data.

An extra benefit of this, you have complete documentation about every
method and every library in your application.

And every form only has one entry in the Uses.
Type
    dyAny = dynArray[] AnyType
EndType

Uses
   HandleMethod(dynRequest dyAny, dynResponse dyAny)
EndUses

Steven Green wrote on 29/04/2019 1:11 AM:
> one comment about USES.. if you put all the lib methods specifically in 
> your USES, then split off or move something in the lib, you have to go 
> back and change the USES in a gazillion forms.. but if you move a bunch of 
> heavily-used stuff to a new lib, you have to go back and change a 
> gazillion forms.. no perfect solution, either way
>
> -- 
>
> Steven Green
> Myrtle Beach, South Carolina, USA
>
> http://www.OasisTradingPost.com
>
> Collectibles and Memorabilia
> Vintage Lego Sets and Parts
> - and Paradox support, too
> "Peter"  wrote in message news:5cc48648$1@pnews.thedbcommunity.com...
>
> Thanks for the advice guys. I'll try that order and I am going to change
> al the USES to specify the methods used.
>
> Peter
>
>
> On 04/27/2019 04:13 AM, Steven Green wrote:
>> when I update a library to a client site, I re-compile and re-save the 
>> lib first.. after that, I've never had issues
>>
>> I have one big client where stuff in the 2nd lib USES the 1st lib.. and 
>> stuff in the 3rd lib USES the first two.. so anytime I make a change, I 
>> re-compile and save the 1st, then the 2nd, then the 3rd.. again, no 
>> issues
>>
>>
>> -- 
>>
>> Steven Green
>> Myrtle Beach, South Carolina, USA
>>
>> http://www.OasisTradingPost.com
>>
>> Collectibles and Memorabilia
>> Vintage Lego Sets and Parts
>> - and Paradox support, too
>> "Peter"  wrote in message news:5cc39449$1@pnews.thedbcommunity.com...
>>
>> Is there any order in delivering forms, libraries etc?
>>
>> I delivered a new version of a form that works perfectly on my test
>> system but when I install it on my customers system it will not work.
>>
>> I then installed the undelivered version of the form and it balks at the
>> libraries listed in the USES section. The libraries are delivered and
>> have the exact same date/time stamp, as are on my test sytem. Thanks for
>> any help.
>>
>> Peter
>


-- 
Tom Krieg
Contact me via the contact page at:
https://sdassociates.com.au 


Copyright © 2004 thedbcommunity.com