Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing in sequence
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01012744
Message ID:
01012753
Views:
23
Neil,
As Tore said are you sure DO generatepdffab is fired? VFP waits until procedure is finished and then continues on the next line of code, so put some WAIT WINDOWs in CASEs to see if the right CASE is being used:
I see you do exactly the same in these 2 cases, so you can modify the like this:
IF (m.fabstatus == 'Pending Approval' OR m.fabstatus='Approved') AND thisform.fabstatus.Value='Approved'
   SELECT fabsum
   TABLEUPDATE(.T.)
   thisform.resetmode
   WAIT WINDOW "Before generatepdffab" NOWAIT NOCLEAR
   DO generatepdffab
   WAIT WINDOW "AFTER generatepdffab" NOWAIT NOCLEAR
ELSE
  WAIT WINDOW "generatepdffab IS NOT FIRED"
ENDIF
WAIT WINDOW "BEFORE locatearticle" NOWAIT NOCLEAR
DO locatearticle WITH cArtikey
WAIT WINDOW "AFTER locatearticle"
WAIT CLEAR

RETURN
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform