Web Connection
wwUtils is not a table
Gravatar is a globally recognized avatar based on your email address. wwUtils is not a table
  Joel Aiken
  All
  Aug 21, 2017 @ 08:24pm

I'm working on building a new project names test1 All was going fine after creating the project, process class, testing etc. Then I began trying to follow the MVC technique, using a business class. Following the DOCs Walk-through Tutorials...step by step, I created a business class cCustomer and a process class CustomerProcess.
During all this, I had to re-compile the test1main.exe file... and all was going fine until I hit this snag.

Now when I attempt the be-build the exe, I get an error stating: "c:\wconnect\classes\wwutils is not a table" Of course I realize it is not a table, it's a PRG with a bunch of functions. I must have inadvertently modified the code somehwere to cause this. I did add "SET PROCEDURE TO wwutils additive" I have searched all the PRGs looking for reference to wwutils, and all looks normal.

Any suggestions are welcome. Joel Aiken

Gravatar is a globally recognized avatar based on your email address. re: wwUtils is not a table
  Rick Strahl
  Joel Aiken
  Aug 22, 2017 @ 09:52am

Just guessing but you probably have:

wwutils.SomeFunction()

somewhere - and it can't resolve wwutils in that context. Easiest way to find this is to use Matt Slay's GoFish and search for wwUtils - it should show you all places in your project where that word is used. wwUtils should never be used except in the SET PROCEDURE TO command.

Gravatar is a globally recognized avatar based on your email address. re: wwUtils is not a table
  Joel Aiken
  Rick Strahl
  Aug 22, 2017 @ 12:10pm

Rick, Thanks, but not solved yet. Love that GoFish app. Here are the results of searching my project "test1" I found a Set Classlib to wwUtils in cCustomer.prg I changed it to Set Procedure to wwUtils ADDITIVE (now see in GoFish results)

But I still get the error when trying to build the test1.exe This error only began showing up AFTER I created the business class cCustomer and the CustomerProcess. Test1.exe had been building fine, and running fine.

I'm going to attch a screen grab of the goFish results. Do you see anything suspicious? Thanks, Joel

Gravatar is a globally recognized avatar based on your email address. re: wwUtils is not a table
  Rick Strahl
  Joel Aiken
  Aug 22, 2017 @ 03:55pm

I don't know - just make sure there's no SET CLASSLIB TO wwUtils anywhere as it has to be SET PROCEDURE TO wwUtils ADDITIVE.

Pretty sure that's the problem, check the error in .err file again to see what the issue is after you fix any of the SET CLASSLIB error(s).

+++ Rick ---

© 1996-2017