| **Navigation:**  [[advanced topics 1.htm|Advanced Topics]] > Clarion Language Utilities >====== ValidateOLE (Validate OLE Control Creation) ====== | [[shorttohex convert an unsigned short to hexadecimal .htm|{{btn_prev_n.gif|Previous page}}]][[advanced topics 1.htm|{{btn_home_n.gif|Return to chapter overview}}]][[windowexists validate window existence .htm|{{btn_next_n.gif|Next page}}]] | | || **VALIDATEOLE(** //OLEControl, <; OLEFileName> , <;OLECreateName> //**)** {{blk2blue.jpg|blk2blue.jpg}} | **VALIDATEOLE** | Validate that an OLE control has been successfully created | | //OLEControl// | A field number or field equate label of the OLE control. | | //OLEFileName// | (under construction) | | //OLECreatename// | (under construction) | **VALIDATEOLE** is used to verify that an OLE control has been created successfully. **VALIDATEOLE** returns TRUE if the OLE control has been successfully created. If not successful, **VALIDATEOLE** can optionally display a message box that describes why the OLE control could not be created, provided that the //OLEFilename// parameter is passed, and then returns FALSE. Otherwise, VALIDATEOLE just returns FALSE if only the //OLEControl// is designated. To add support for this utility to your existing applications, you need only include the CWUTIL.INC file in the Global Map section of your program: **INCLUDE('CWUTIL.INC'),ONCE** **Return Data Type:**     BYTE **Example:** **LOC:OLEActive = VALIDATEOLE( ) !is a remote session active?**