View Issue Details

IDProjectCategoryView StatusLast Update
0001757JEDI VCL00 JVCL Componentspublic2004-08-03 07:32
ReporterAlexeiRAssigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0001757: JvInterpreter: cannot assign set constant to a set variable
DescriptionI have posted this message to the forum, but receive no answer. So I decided to post it here.
My code is (interpreter script language):
...
Label1 := TLabel.Create(SomeForm);
...
Label1.Font.Style := [fsBold];
                        ^
here I receive exception 'integer expression expected'
from interpreter.
Workaround is to assign font style from other component:
Label1.Font.Style := Panel1.Font.Style;
May be I just don't know some rules of interpreter...
Please help!
TagsNo tags attached.

Activities

AlexeiR

2004-05-31 04:19

reporter   ~0004415

Sorry, I meant 'cannot assign set constant to a set variable'.
I'm slightly disappointed: is there people using JvInterpreter?
There is no answer to my report...

user72

2004-06-01 00:33

  ~0004421

> is there people using JvInterpreter?
It is impossible to know every component in the JVCL, even for the developers. I am sure that someone is using JvInterpreter but that/those people might not visit the bug tracker or the newsgroups that often. YOu will just have to have some patience.

Here's an idea: try using a local variable that you set and then assign that variable to the Font.Styl property, i.e:

var
  FontStyle:TFontStyles;
begin
  FontStyle := [fsBold];
  Label1.Font.Style := FontStyle;
end;

You should also try to debug the code by setting a breakpoint and trace into the code where you set the font style

obones

2004-08-03 07:32

administrator   ~0004892

This bug has not had any activity for more than a month, it is therefore considered closed.
To the original poster: If you think the issue is still there, even after having tested with the JVCL3, please create a new bug report.

Issue History

Date Modified Username Field Change
2004-05-12 10:00 AlexeiR New Issue
2004-05-31 04:19 AlexeiR Note Added: 0004415
2004-06-01 00:33 user72 Note Added: 0004421
2004-06-01 00:46 user72 Summary JvInterpreter: cannot assign set constanr to a set variable => JvInterpreter: cannot assign set constant to a set variable
2004-06-03 01:15 user72 Status new => feedback
2004-08-03 07:32 obones Status feedback => closed
2004-08-03 07:32 obones Note Added: 0004892