I have a block of code like this:
<%
write to console("before case")
case of
:($tabpg="shp") `Shipments tab page
include ("/srts/includes/shipments.inc")
:($tabpg="tsk") ` Query/List view of Tasks
include ("/srts/includes/tasks.inc")
:($tabpg="shpdtl") `Shipment Details tab page
include ("/srts/includes/shipment_details.inc")
:($tabpg="tskdtl") `Task Details tab page
include ("/srts/includes/task_detail_master.inc")
write to console("a: "+$tabpg)
:($tabpg="shpadd") `Add Shipment tab page <== ### SPORADIC
ERROR HERE
write to console("b: "+$tabpg)
include ("/srts/includes/shipment_add.inc")
:(($tabpg="admin") & ($isSRTSAdmin)) ` 13-Nov-2007, tct,
Administration tab page
include ("/srts/includes/admin.inc")
end case
write to console("after case")
%>
Up until today it was working fine and in most cases it continues too. I
can display various pages and my console output will display:
before case
after case
or
before case
{other expected console output}
after case
I have a repeatable problem where I'm getting an error.
Active4D error
Source Method Line
/Server HD/Applications/4D Web Client/web/srts/index.a4d [main] 216
:($tabpg="shpadd")`Add Shipment tab page
Expecting Else or End if
Active4D 4.0.2 [Mac/Carbon, release, ITK, Client]
This makes me think that the the exectution of
include ("/srts/includes/task_detail_master.inc")
is corrupting the case statement, but there are cases where that include
will run and no error occurs.
Has anybody ever encountered something like this? Any tips to how I
might isolate or fix the problem?
I have restarted 4D Client. I've trashed the .res and .rex files.
I have also restarted Apache. Problem persists.
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/