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