PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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"
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment