Why this script show a syntax error


#1

Hi, why this script show a syntax error?
function getLicenseInfo(infoNr: String): String;
var
buf: AnsiString;
begin
SetLength(buf, 128);
if obsGetLicenseInfo(StrToInt(infoNr), buf) then
Result := buf
else
Result := “”;
end;
tks you.


#2

Looks like the " (quote) character isn’t the valid one.


#3

tks you,
how i can solve the problem please.
error code: unknown method or routine: ‘SetLength’


#4

SetLength isn’t defined. Do not use it.
BTW have you contacted Obsidium support to get updated Obsidium code for recent ExeOuput versions?


#5

No i havent !!


#6

do you have solution for that please?


#7

I contacted Obsidium suppot and they give me an updated version of the code thanks you so match.