Re: [MBS] exchangeFilesMBS return codes?
> Is this a system file error return code? Where should I go to look up what > that means? 0 is okay. -1 is normally something in the plugin like invalid folderitem. Other codes are OS error codes. Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] HTMLViewer.IELoadHTMLMBS
On Oct 20, 2015, at 3:35 AM, Christian Schmitz wrote: > > >> Am 20.10.2015 um 04:30 schrieb Michael Diehr : >> >> I'm not having any luck with HTMLViewer.IELoadHTMLMBS, testing under Windows >> 10 it always returns false. >> >> The documentation is a little unclear, saying "On Windows you may need to >> reset webviewer before or load "about:blank" to initialize the webviewer by >> Xojo (or Real Studio)." > > first call this: > HTMLViewer1.LoadURL "about:blank" > > than you can call this: > > if HTMLViewer1.IELoadHTMLMBS(TextArea1.Text) then >// ok > else >MsgBox "Failed to load html." > end if My problem was trying to do both calls in the same event, it appears that you need to do the LoadURL call first, then do the second call later. Otherwise it fails. ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] exchangeFilesMBS return codes?
> On Oct 20, 2015, at 9:45 AM, James Sentman wrote: > > I’ve used this method extensively and never had a problem before, but today I > tried to update one other method that previously used a lot of declares to do > the same thing and I’m getting a return code of “-1” > > it appears that the files are actually swapped without a problem even though > the return code is not 0. Is this a system file error return code? Where > should I go to look up what that means? Heh, sorry, false alarm. I was still writing to the original file and so never creating the temp file, you can’t exchange a file with one that doesn’t exist ;) Thanks, James James Sentman http://sentman.com http://MacHomeAutomation.com ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
[MBS] exchangeFilesMBS return codes?
I’ve used this method extensively and never had a problem before, but today I tried to update one other method that previously used a lot of declares to do the same thing and I’m getting a return code of “-1” it appears that the files are actually swapped without a problem even though the return code is not 0. Is this a system file error return code? Where should I go to look up what that means? Thanks, James James Sentman http://sentman.com http://MacHomeAutomation.com ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] HTMLViewer.IELoadHTMLMBS
> Am 20.10.2015 um 04:30 schrieb Michael Diehr : > > I'm not having any luck with HTMLViewer.IELoadHTMLMBS, testing under Windows > 10 it always returns false. > > The documentation is a little unclear, saying "On Windows you may need to > reset webviewer before or load "about:blank" to initialize the webviewer by > Xojo (or Real Studio)." first call this: HTMLViewer1.LoadURL "about:blank" than you can call this: if HTMLViewer1.IELoadHTMLMBS(TextArea1.Text) then // ok else MsgBox "Failed to load html." end if Sincerely Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info