>Nadya, what do you mean by "it lives Unknown 2 DS (empty)" ?
>Could the difference between running a command from command window or from program be the environment, including a SET xx condition?
It looks, like it always leaves DS open after the form is closed. I'm going to run one more test now, because I found a problem. I set gcTempPath to be sys(2023) and forgot to add a slash. This was the cause of "field" phrase not found.
When I close the form and type SET command, I see Default DS (1) and Unknown (2) It means, what some object was created and not released or something along the lines. I don't know, how to chase this problem down. It doesn't happen, if I run it from another application, so there must be some differentce...
Also tomorrow is my last day here in my current position. I'm starting as a WEB developer, so I just don't know, if I ever would be able to find this beast...
>
>>Hi everybody,
>>
>>I have a very complicated application. I just found, that when I run it from command window, it lives Unknown 2 DS (empty). I can run the following command from command window
>>btcrit('promptn',[r0110VD7OV],"x:\redp\dbc\jobs\metafiles\BtCritss.dbf") and it brings me a form.
>>
>>But if I place the same command into the program, it gives me an error: Field phrase is not found. Moreover, the application works fine in the production (called from another application).
>>
>>But I'm trying to run a program to automatically update configurations and I recieve this weird error. What's the difference between running a command from command window and from program? How can I fix the problem?
>>
>>It error on the following lines in code:
>>
>>if !empty(.TableName)
>> .Container1.list1.rowsourcetype = 2
>> .Container1.list1.rowsource = .TableName
>> .Container1.list1.requery()
>> endif
>>
>>I don't understand, why it happens
If it's not broken, fix it until it is.
My Blog