Giving error on custom control ole object on line ole_1.Object.Open(sFileName) while opening a avi file quick help is really appreciated. the error is "Error calling external object function open in line 10 in open event of object win_wait_prompt". Powerbuilder application execution error (R0035).
environment env
string sFileName, sDir
sFileName = "C:\SGA\RES\filecopy.avi"
IF NOT FileExists(sFileName) THEN
// sFileName = sDir + "\filecopy.avi"
MessageBox("Missing", "Missing ~"filecopy.avi~"", Exclamation!)
END IF
IF FileExists(sFileName) THEN
ole_1.Object.Open(sFileName)
ole_1.Object.Play(-1,0,-1)
MessageBox("Available", "Available ~"filecopy.avi~"", Exclamation!)
ELSE
MessageBox(Title, "Missing ~"filecopy.avi~"", Exclamation!)
END IF
Do you need to initialize the ole object first in order to access the fucntions?
As Amit says use OLERuntimeError exception to get more information.