Wrote a small program, but they are all replacement failure, still null values, a great god answers under the
The code is as follows:
The use?
The set talk off
REPLACE all lin_zhon_1 with IIF (EMPTY (lin_zhon_1), "0", lin_zhon_1)
GO the top
Scan
DO CASE
CASE VAL (allt (lin_zhon_1) & lt; 118 and VAL (allt (lin_zhon_1) & gt; 110
REPLACE all LDLX with "10"
CASE VAL (allt (lin_zhon_1) & lt; 128 and VAL (allt (lin_zhon_1) & gt; 120
REPLACE all LDLX with "20"
CASE VAL (allt (lin_zhon_1) & lt; 234 and VAL (allt (lin_zhon_1) & gt; 230
REPLACE all LDLX with "30"
CASE VAL (allt (lin_zhon_1))=240
REPLACE all LDLX with "40"
CASE VAL (allt (lin_zhon_1) & lt; 256 and VAL (allt (lin_zhon_1) & gt; 250
REPLACE all LDLX with "50"
OTHERWISE
REPLACE all LDLX with ""
ENDCASE
ENDSCAN
GO the top
Scan
DO CASE
CASE lin_zhon_1="0" and VAL (allt (di_lei_1)) & lt; 199
REPLACE all LDLX with "70"
CASE lin_zhon_1="0" and VAL (allt (di_lei_1)) & gt; 260
REPLACE all LDLX with "70"
ENDCASE
ENDSCAN
CodePudding user response:
Put all the REPLACE all removed all see how!CodePudding user response: