Home > database >  New problems, have not learned pb. The program error for answers.
New problems, have not learned pb. The program error for answers.

Time:10-10

Error message:
DataWindow column type does not match the GetItem type at line 16 p1 ue_create_ds # # # 1 in the event of object w_store_report__0e7c0685.
The data window column type and the GetItem function return type does not match the

Assignment code:
If idw_master. ClassName ()='dw_detail_list Then
Ldw_src=(' dw_detail_list https://bbs.csdn.net/topics/wf_getcontrol
The Else
Ldw_src=https://bbs.csdn.net/topics/wf_getcontrol ($$is_srcdwname)
End the If
If ldw_src. Of_iscolexist (' wareid ')=False Then Return 0
Ll_wareid=ldw_src. GetItemNumber (ldw_src GetRow (), 'wareid')

The eldest brother, just into the door, take the value is the number of types, the error and the assignment of the code above can see where is the problem? What ldw_src is assignment, wf_gets is the function? What's there is of_iscolexist well,

CodePudding user response:

Which verion of your original concept?

CodePudding user response:

Ll_wareid=ldw_src. GetItemNumber (ldw_src GetRow (), 'wareid) wareid is numeric?

CodePudding user response:

1. If idw_master. ClassName ()='dw_detail_list' Then//PB naming habits, begins with the I, on behalf of the Instance variable, with l, represents the local variable
2. Ldw_src=https://bbs.csdn.net/topics/wf_getcontrol (' dw_detail_list ')//so ldw_src should be a datawindow control controls, wf_ should be a window function, this is a custom function
3. The Else//1 ~ 5 lines, ldw_src will point the two datawindow control one (dw_detail_list or $$is_srcDwName)
4. Ldw_src=https://bbs.csdn.net/topics/wf_getcontrol ($$is_srcdwname)
5. End If
6. If ldw_src. Of_iscolexist (' wareid ')=False Then Return 0//of_iscolexist ldw_src object function, whether wf_ or of_ the beginning of the function, are not PB's own function
7. Ll_wareid=ldw_src. GetItemNumber (ldw_src GetRow (), 'wareid')//it should be a function of previous development
//for 1 ~ 5 lines of DWC is dynamic, line 6 must distinguish the DWC in the datawindow object have the column of_iscolexist - & gt; Is the column exist for
//if the line 6 after test, the field exists, only by line 7 read the content of column
//PB GetIem will not own discriminant don't column type, hence split GetItemNumber, GetItemDecima GetItemString... Such as antipodal type required for other function
//because your program, there are quite a few of the function, is not easy to determine the reason for the error

CodePudding user response:

Well,,,,,,, please carefully read the operation manual

CodePudding user response:

Look at ldw_src. GetItemNumber (ldw_src GetRow (), 'wareid) data type if there's any problem
  • Related