Recent

Author Topic: [SOLVED] Function OpenDocument stop working after update from 0.9.30 to 1.6 OS X  (Read 3690 times)

Odacir

  • New Member
  • *
  • Posts: 43
Hi,

I updated my Lazarus from 0.9.30 to 1.6, and the funcion OpenDocument, stop working. No error message, but don't open nothing.

Is possible anyone test to me, if the function work on OSX with Lazarus 1.6?

The code is:
OpenDocument('name and path of the file');

Declare the unit: lclintf
« Last Edit: May 06, 2016, 11:02:43 pm by Odacir »

Odacir

  • New Member
  • *
  • Posts: 43
Discovered the problem....

On 0.90, need a quoted string to open. Now, if send string quoted, the validation using FileExistsUTF8(APath) don't found the file....

Solution: only send string whithout quotes on parameter.


jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
It is a large step from 0.9.30 to 1.6  ;)
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

Odacir

  • New Member
  • *
  • Posts: 43
Really jwdietrich... A few years!!!  ::)

But at the moment, all running fine, only some adjusts.

 

TinyPortal © 2005-2018