just one thing, make the if-then structures into if-endif structures, DB sometimes makes a mess of parsing if-then and gives the wrong result even though the code is right, it seems to like being led by the hand and told specificaly when the decision has ended, just something I noticed that has given me some greif before, now I make even one liners into if-endifs just to ensure code runs as expected EG
if a=1 then print "Hello"
is safer as
if a=1
Print "Hello"
endif
Mentor.
PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.