ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Example
  • Declaring an OLE Automation object
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Error 122: The name of an Automation object must be a string
Reason
You are declaring an automation object without using a string (or a string variable) to define the name of the automation object.
Correction
Use a character string (or a character string variable) to define the name of the automation object.
Example

Declaring an OLE Automation object

Code triggering the error
MyDocument is Automation object 5


Possible correction
Give a name to the Automation object.
MyDocument is Automation object "Word.Application"
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help