Skip to Content
0

Why not resolve my public function?

Dec 08, 2016 at 04:06 PM

77

avatar image
Former Member

I have one function x with string return in one pbl library, in my aplication i have one dw that use the funcion x, in design mode run ok but when i run the exe no.

Why???

Victor

10 |10000 characters needed characters left characters exceeded
Former Member

If you don't call the function somewhere in code, it will not be included in the final exe.

After a return, doesn't matter where, put in a dummy call to the function. It doesn't matter that it will never execute, the compiler will still see it and included it in the exe.

// some code on an event - app open will work
.....
return

x("dummy call") // make sure function X gets included in the exe

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Dec 08, 2016 at 08:30 PM
0

Hi,

The PBD containing the function and the EXE must be in the same folder.

Maybe you have them in different locations.

Share
10 |10000 characters needed characters left characters exceeded