Home > database >  Please help
Please help

Time:10-03

I have a problem now, when program classification, the input number prompt "error message", "input data does not conform to the requirements, please input again... ", "
I want to know what from this place to change, then I searched for half a day, only found a Angle of the below! This is PB6.5 source please!!!!!!!!!!
This is ITEMERROR ancestors Angle the following content:
String ls_colname, ls_datatype
Int ls_return
Ls_colname=Lower (dwo. Name)
Ls_datatype=Lower (dwo. ColType)
Beep (1)
Messagebox (" error ", "the input data is not in conformity with the requirements, please input again... ", stopsign! , ok!
CHOOSE a CASE ls_datatype

CASE "long"
The integer null_num
SetNull (null_num)
Enclosing SetItem (row, ls_colname null_num)
Ls_RETURN=1

CASE "date"
The date null_date
SetNull (null_date)
Enclosing SetItem (row, ls_colname null_date)
Ls_RETURN=1

CASE "string", "char", "varchar
"String null_string
SetNull (null_string)
Enclosing SetItem (row, ls_colname null_string)
Ls_RETURN=1

CASE "a datetime"
Datetime null_date1
SetNull (null_date1)
Enclosing SetItem (row, ls_colname null_date1)
Ls_RETURN=1
CASE "decimal", "double" and "real"
A Decimal null_data1
SetNull (null_data1)
Enclosing SetItem (row, ls_colname null_data1)
Ls_RETURN=1

//Additional cases for other data types

The END CHOOSE
Return 1

CodePudding user response:

Let the progenitor code does not perform,
In this dw window ITEMERROR write return 1
Then click right, ensure the extend ancestor script don't choose,

CodePudding user response:

the ITEMERROR ancestors script code itself is garbage, basically doesn't make sense! Keep the stem what? All deleted write yourself

CodePudding user response:

Dwo. What is the Name of the ah, is variable, or what, why I can't find it defined position!!!! 11

CodePudding user response:

In the data window object name DWO data window event in itself is a parameter, used to identify you do judgment with an object,

CodePudding user response:

reference 1st floor SummerHeart response:
let progenitor code does not perform,
In this dw window ITEMERROR write return 1
Then click right, make sure the extend ancestor script don't choose,

CodePudding user response:

You really should put this code is deleted, the role of this code does not give a hint when error and the error value is empty, don't display system's own tips,
If in order to achieve this functionality, it this kind of writing is redundant, I keep, can change to be like this:
 setnull (data) 
Messagebox (" error ", "the input data is not in conformity with the requirements, please input again... ", stopsign! , ok!
Return 1

CodePudding user response:

reference xtaamr reply: 3/f
dwo. What is the Name of the ah, is a variable, or what, why I can't find it defined position!!!! 11

Dwo is the event parameters, the incident occurs, pb from the current Dwobject,
  • Related