Is there possible?

emerson82

New Member
Hello,

I've a problem, my users wish fill a register about Mat rules and that rule be run when the program is running.

Is there some way to create this?

I solved this problem with the follow source:

formula = "out1 = " + formula-norma-lem.formula-txt[ict].
OUTPUT TO c:\ems204\spool\tmp0100.p.
PUT "define output parameter out1 as decimal no-undo initial 0." FORMAT "x(80)" SKIP.
PUT "define input parameter N as DECIMAL no-undo ." FORMAT "x(80)" SKIP.
PUT formula FORMAT "x(80)" SKIP.
PUT "MESSAGE STRING(OUT1) VIEW-AS ALERT-BOX. " FORMAT "x(80)" SKIP.
PUT "return." SKIP.
OUTPUT CLOSE.
RUN c:\ems204\spool\tmp0100.p ( OUTPUT amostra, qtde-prod).
LEAVE.

But only my computer has progress appbuilder when I'm running the program at user's computer I receive a message that the program can't run.


Thanks,

Emerson
 
i dont know if this is just me but i do not have a clear idea of what you are saying. Can you better explain this?
 
If I understand what you are doing, you are generating source code on the user's machine to run the program you are outputting?

If the user does not have the Progress development environment installed and running, you cannot run source code directly. It must be encrypted and compiled.
 
You can run the code on a client with a query license, as long as it doesn't update the database, but you will need a development license to compile code that does update the database.
 
Thanks for the help!!!

My first problem is develop a code when the user types a mathematical string, example N * 0.0178 + (N / 1000) and whenever my program found product it apply the products' weigth to mathematical string.

The only way I found to solve this problem was developed the source above but I've been come across the license in the client.

I would like to know if there migth be a different way to solve the problem.

Thanks.

Emerson
 
Back
Top