Skip to Content
avatar image
Former Member

Why not resolve my public function?

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

Add comment
10|10000 characters needed 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
    
  • Get RSS Feed

1 Answer

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

    Hi,

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

    Maybe you have them in different locations.

    Add comment
    10|10000 characters needed characters exceeded