Webspeed oddities...

Chris Kelleher

Administrator
Staff member
OK, This is about to make me nuts. No 2 ways about it.

I'm working with WebSpeed version 2.1 on NT, DB version 8.2a on AIX.

I've copied a character program from the AIX machine to the NT machine and
then copied and pasted (using Visual InterDev) that code into an ESS/htm
document. Then, as I make changes to the code, I head to the workshop.
There, I get messages such as Unknown Field or Variable name on variables I
know I've defined (and I know that by looking at the code in InterDev).
Then, I choose the "View" button in the workshop and those lines of codes
with the variable definitions are not there. I can re-type verbatim the code
in a new HTML file and it will compile flawlessly. But, if I paste anything
in from the old document, it becomes "poisoned" once again, and the compiler
will ignore entire lines of code....
Has ANYONE experienced ANYTHING like this. It is literally making me crazy.
Thanks in advance,
Elliott Roberts
Internet/Web Developer
Affiliated Paper Companies
eroberts@apclink.com
 

Chris Kelleher

Administrator
Staff member
Elliot,

You are not alone. Visual InterDev is causing the problem. If, after you
cut and paste the code, you save the file and look at it in an editor that
shows ALL ASCII characters you will notice odd characters on at the begining
of each pasted line (I think that you can see them if you load the file
into the Progress Editor). These characters make WebSpeed very unhappy and
so it decides not to compile them.

I have actually only run into this at certain clients -- those where I pull
the files off of an AIX box. My solution was to use another editor at those
clients (Notetab Pro works fine as does the Progress Editor).

Hope this helps,

Brian

Brian Laferte brianl@webspeedconsulting.com
President

Progressive Systems Technology, Inc. http://www.webspeedconsulting.com

P: 401-762-4905
F: 401-767-5337
 

Chris Kelleher

Administrator
Staff member
My only idea is to look for things like &ANALYZE-SUSPEND and
&ANALYZE-RESUME in the code. If you step on those, workshop freaks out
and can hose your program.

I can't think of how to easily articulate what these things do, but
perhaps another listie can elaborate?

--
Steve Southwell
Web Programmer / Consultant
United Systems, Inc. http://www.usiatl.com
Phone: (214) 488-2239
 

Chris Kelleher

Administrator
Staff member
Since he's using ESS WOs, there shouldn't be any
of these tags present in the .html file.

I can't remember exactly what they're used for, but
I vaguely recall that the they're used to load sections
of the file when using either the UIB (GUI) or WS Java
based editor. Now that I think about it, I think they're
also used by the compiler when generated r-code.

There's a detailed explanation of these tags in the
V8 QUE book (which I don't have).

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R o b e r t J. M i r r o
rmirro@microserve.net http://www.microserve.net/~rmirro/

I have lost the will to live
Simply nothing more to give
There is nothing more for me
Need the end to set me free
- Metallica
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 

Chris Kelleher

Administrator
Staff member
I think I may have solved the problem... sort of. Another colleague of mine
suggested I open the code (from the AIX machine) in Wordpad and then copy
and paste that into InterDev. Since I originally posted the problem, I tried
that. It has worked since then without problems (knocking on wood). That
would seem validate the claim that InterDev does something funny to the
code. It just threw me because it not only seemed to ignore the code, but
the entire lines of code. It would just continue numbering as if there was
nothing there....

At any rate, I appreciate your quick feedback... good to know I'm not alone.

BTW, there were no quirky code problems, Steve. I commented everything out
but the variables and corresponding assignment statements.

Thanks for the help!

Elliott

Elliott Roberts
Internet/Web Developer
Affiliated Paper Companies
eroberts@apclink.com
 

Chris Kelleher

Administrator
Staff member
Elliott...You may need to breakup your code into smaller modules.

If you have a large
"Section: Trigger" or
"Section: Procedures, Process-web-request",
try breaking the code up by creating new procedures which are executed (run xxxx.) from existing locations.

The first place to look is the module (Trigger or Procedure) which is missing the code. Try breaking up the code in that location and have an additional procedure (run xxxx) added in that location. Recompile and see if all of your code (existing and new procedure) appears.

I had a similar problem (WS 2.0 for NT)...Dennis Thurman
 
Top