Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread RO SDK error with 1.03
Sat, Jan 18 2014 10:36 PMPermanent Link

PhillipH

I have a project that uses the RO SDK for getting the data. I think it is still pretty much the same as a sample project posted to these forums that I used as a base. Compiles and runs fine under EWB 1.02B2, but under 103.B1 it comes up with an error that SDK is undefined.

SDK being ...
procedure TMainForm.MainFormCreate(Sender: TObject);
begin
 SDK := RemObjects.SDK;

Uninstalled 1.03 and reinstalled 1.02 and was fine again.

Does this provide enough clues to know what might have changed ?
Mon, Jan 20 2014 4:10 AMPermanent Link

Matthew Jones

I just fell over this, and looking at the source it is obvious when you think about
it.

This is what there was:
----------------------
external RemObjects: TRemObjects;
   SDK: TSDK;
----------------------
and in the RemObjectSDK.js there is:
----------------------
var RemObjects = {};

RemObjects.SDK = {
....
----------------------

This seems, to me, to say that the SDK variable is an external, but maybe it was
not being treated so. I suspect that the scope fixes made this change. The answer
is just to reference RemObjects.SDK directly. If you want a local variable (or
global), then make one.

With this change (and a single framework hack I need) my current code is working
just fine in 1.03.

/Matthew Jones/
Tue, Jan 21 2014 2:21 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Phillip,

<< I have a project that uses the RO SDK for getting the data. I think it is
still pretty much the same as a sample project posted to these forums that I
used as a base. Compiles and runs fine under EWB 1.02B2, but under 103.B1 it
comes up with an error that SDK is undefined. >>

I would need to see the external declarations for the RemObjects SDK in
order to say what the issue is.

Tim Young
Elevate Software
www.elevatesoft.com
Image