AVEVA Community
Site
Search
User
Site
Search
User
AVEVA World
PDMS/E3D Forum
PDMS "Lessons Learned"
Cancel
PDMS "Lessons Learned"
Error Codes
Bad callback 1000 error
Forums
Resources
Mentions
Sub-Groups
Tags
More
Cancel
New
Replies
3 replies
Subscribers
1 subscriber
Views
24 views
Users
0 members are here
Options
Share
More
Cancel
Related
Bad callback 1000 error
Allan McDonald
over 10 years ago
Parents
Mark Lemuell T. Calvez
over 10 years ago
Hi Sir Allan,
Try to check the codes make sure there is "endmethod" before difining a new method.
ex. (collecting attachment)
[COLOR=#ff0000]define method .copyatta()[/COLOR]
var !collatta COLLECT ALL ATTA FOR CE
!myarray = object array()
!size = !collatta.size()
!saveatta = !!ce
!cenamn = NAMN OF CE
do !x from 1 to !size
$!collatta[$!x]
!NAME = NAME
!card = |NEW ATTA COPY | + |$!NAME|
!myarray.append( !card )
enddo
!!ce = $!saveatta
!myoutput = |c:\mark\collatta.txt|
!MyFile = object FILE ( !myoutput )
!MyFile.WriteFile(|OVER|,!myarray)
!MyFile.close()
[COLOR=#ff0000]endmethod [/COLOR]
[COLOR=#00ff00]<------------ checked this!!!.[/COLOR]
[COLOR=#ff0000]
[/COLOR]---------------------------------------[COLOR=#ff0000]
[COLOR=#ff0000]define method .MARKDATA()
[COLOR=#00ff00]<------------ you're method!!!.[/COLOR]
[/COLOR]
----
----
---
--
[COLOR=#ff0000]endmethod
[/COLOR]
[/COLOR]hope this will help.
Regards
;)[COLOR=#ff0000][/COLOR]
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Reply
Mark Lemuell T. Calvez
over 10 years ago
Hi Sir Allan,
Try to check the codes make sure there is "endmethod" before difining a new method.
ex. (collecting attachment)
[COLOR=#ff0000]define method .copyatta()[/COLOR]
var !collatta COLLECT ALL ATTA FOR CE
!myarray = object array()
!size = !collatta.size()
!saveatta = !!ce
!cenamn = NAMN OF CE
do !x from 1 to !size
$!collatta[$!x]
!NAME = NAME
!card = |NEW ATTA COPY | + |$!NAME|
!myarray.append( !card )
enddo
!!ce = $!saveatta
!myoutput = |c:\mark\collatta.txt|
!MyFile = object FILE ( !myoutput )
!MyFile.WriteFile(|OVER|,!myarray)
!MyFile.close()
[COLOR=#ff0000]endmethod [/COLOR]
[COLOR=#00ff00]<------------ checked this!!!.[/COLOR]
[COLOR=#ff0000]
[/COLOR]---------------------------------------[COLOR=#ff0000]
[COLOR=#ff0000]define method .MARKDATA()
[COLOR=#00ff00]<------------ you're method!!!.[/COLOR]
[/COLOR]
----
----
---
--
[COLOR=#ff0000]endmethod
[/COLOR]
[/COLOR]hope this will help.
Regards
;)[COLOR=#ff0000][/COLOR]
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Children
No Data