- amit kurhe
- PowerBuilder
- Wednesday, 11 March 2020 02:48 PM UTC
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
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.