This is the error I get, when I try to compile

This is, with just small snip of code:
dim kreds as xpBaseObject
self.GetObjectByName ("1", kreds)
And it would not compile...
It works on another XPression machine.
------------------------------
Tue Sandbæk
Director / TV-Technician
TV SYD
------------------------------
Original Message:
Sent: 11-02-2022 09:06
From: Garner Millward
Subject: Get error when try to script
If an identical script compiles on XPression Studio and not Designer the most likely issue is that some XPression software (on the Designer system) was uninstalled at some point. For example, if two editions of XPression (ex Designer and Studio) were both installed on the same machine and one of them was uninstalled. You can resolve this by re-installing XPression Designer software. Just close XPression Designer and then re-install Designer using the installer.
Original Message:
Sent: 11-02-2022 04:24
From: Tue Sandbæk
Subject: Get error when try to script
I've tried the script on my XPression designer, there I get error when trying to compile, seems like a program bug or failure on the machine.
When I try on a new XPression studio, it works.
------------------------------
Tue Sandbæk
Director / TV-Technician
TV SYD
Original Message:
Sent: 11-02-2022 04:21
From: Roman Yaroshenko
Subject: Get error when try to script
Hi Tue
Where do you set the script?
------------------------------
Roman Yaroshenko
chief specialist
RBC-TV
Moscow Russian Federation
Original Message:
Sent: 11-01-2022 16:40
From: Tue Sandbæk
Subject: Get error when try to script
dim logo as xpbaseobject
scene.getobjectbyname ("Parti Logo 1", logo)
if text = "1" then
logo.visible = true
else
logo.visible = false
end if
------------------------------
Tue Sandbæk
Director / TV-Technician
TV SYD
Original Message:
Sent: 10-31-2022 05:39
From: Roman Yaroshenko
Subject: Get error when try to script
Hi Tue.
Can you put your script here?
------------------------------
Roman Yaroshenko
chief specialist
RBC-TV
Moscow Russian Federation
Original Message:
Sent: 10-29-2022 16:33
From: Tue Sandbæk
Subject: Get error when try to script
I get an error when I try to comile something in script.
------------------------------
Tue Sandbæk
Director / TV-Technician
TV SYD
------------------------------