At 08:18 PM 10/18/2004 -0400, Kayza Kleinman wrote:
If I dump that block of code into a cmd file, it works
perfectly.
Here is the code:
============================================================
DIALOG 'Enter Start Date||!99/99/0000;1;_' vBDateT=10 whtemp 1+
CAPTION 'Start Date' ICON Question at Center Center
SET VAR vCondition = .vCondition + ' between ' + .vBDateT + ' and ' + .vEDateT
Kayza,
A few suggestions:
01. If your code is to be used in CodeLock, limit the characters
per line to 79.
02. For continuing code on the second line, use the text up to
77 characters, then space and then the + sign. (Make sure
that there is a space before the continuation +)
Example:
Before:
DIALOG 'Enter Start Date||!99/99/0000;1;_' vBDateT=10 whtemp 1+
CAPTION 'Start Date' ICON Question at Center Center
After:
DIALOG 'Enter Start Date||!99/99/0000;1;_' vBDateT=10 +
whtemp 1 CAPTION 'Start Date' ICON QUESTION
Before:
SET VAR vCondition = .vCondition + ' between ' + .vBDateT + ' and ' + .vEDateT
After:
SET VAR vCondition = +
(.vCondition & 'BETWEEN' & vBDateT & 'AND' & .vEDateT)
Notes:
01. No need to use CENTER CENTER
All DIALOG and PAUSE statements are always centered in 7.x.
02. No need to use hard coded spaces while you can use
ampersand "&" symbol for space when defining expressions
or building syntax strings.
Hope that helps!
Very Best R:egards,
Razzak.