Paradox Community

Items in pnews.paradox-programming

Subject:Re: Sessions
Date:Thu, 19 Oct 2017 09:37:17 +1000
From:Leslie <"ViaThe List"@NOSPAM.com>
Newsgroups:pnews.paradox-programming
Peter,

Do NOT look to the registry to solve this problem, that is the wrong 
approach. I have explained many times why people using the Registry 
eventually can screw up the BDE and even if you find a Paradox specific 
setting you will run into the same trouble.

The golden rule has always been to set your session "variables" at run 
time - do not expect "static" settings to live forever in case something 
occurs to change things - like someone else changing the registry to 
some other value.

Leslie.


On 19/10/2017 7:30 AM, Peter wrote:
> Thank you for the reply.
>
> That is also the approach I have been using but I am running into other
> complications so I would like to do it when opening the program
>
> I did make something up yesterday in a form, putting the SetPrivDir() in
> the open method and trap for MenuChangingPriv in the menuaction (to
> prevent closing.)It is working okay
>
> I tried doing it in a script but the script has no menuaction. So the
> SetPrivDir() works but adding any other code (even a "view(PrivDir())")
> will result in not working.
>
> I am now looking at the registry and seeing if there is something I
> could there instead, via script writing data to the keys. Dangerous area
> for me.
>
> Peter
>
>
> On 10/17/2017 03:05 PM, modridirkac wrote:
>> In a shortcut you can define which private to use.
>>
>> c:\app\runtme\pdxwin32.exe -p x:\app\priv1 -w x:\app\db  start.fsl
>>
>> Something like that.
>>
>> "Peter"  je napisal v sporočilo news:59e67435$1@pnews.thedbcommunity.com
>> ...
>>
>> It seems each computer has different disk/directory structures. Is it
>> unwise to make a directory on the server and a folder for each station
>> to serve as the private directory?
>>
>>
>> On 10/17/2017 02:04 PM, Peter wrote:
>>> I have an app running on a small network. I want each computer to run 2
>>> sessions (on separate screens) of Pdox and am wondering the best way of
>>> accomplishing that.
>>>
>>> The current method right now is defining two different private
>>> directories in the desktop shortcuts. Is there a better way? Thank you
>>> for any ideas.
>>>
>>>
>>> Peter
>>

---
This email has been checked for viruses by AVG.
http://www.avg.com


Copyright © 2004 thedbcommunity.com