Terry,
The fact is that DoButton should not be used for new code. Period. End of story. No If's, And's or but's about it.
The poster was clearly writing a new script.
There is simply no % in writing new code that uses deprecated APIs.
I just report the decisions as I've been told them:
On V4 the plan is to allow two types of scripts to run:
1) V4 API mode - this will use calls that use the new resource numbering scheme. So these scripts will HAVE to be all new (or rewritten versions of old scripts).
2) V3 compatibility mode - this will be (most of the) existing scripts using V3 API calls.
My understanding of current plans is that DoButton, Get/SetDRO and Get/SetLED et all, are going to be disabled in v4 - including the V3 API mode in V4.
It's literally been years since the old style calls were deprecated - ever since the DoOEMButton, GET/SET-OEM/User-LED/DRO functions calls were added - that's been a very long time.
I've been in the software game since the late 1960's. - You can believe me when I say that I understand the issues around API changes.
If you want to see some of the issues you're fond of complaining about resolved, you'll have to get used to using some new calls. Some things just can not be fixed using the old API calls - that's a fact.
In all cases, the use of deprecated calls is a bad idea for new code.
(and it doesn't matter how nice an old API looks on the shelf next to the worn out buggy whip...
)
Dave
HIYA Dave, Just to mention that Fanuc learned a valuable lesson long ago about depreciating old code. After that mess they put it back in(;-) pronto.
Just a thought,(;-)