It looks like you're new here. Sign in or register to get started.
PurchaseLine."Unit of Measure Code" := PurchaseLine."Unit of Measure Code"::KG;
PurchaseLine."Unit of Measure Code" := PurchaseLine."Unit of Measure Code"::"4672511";
PurchaseLine."Unit of Measure Code" := 'KG';
PurchaseLine."Document Type" := PurchaseLine."Document Type"::Invoice;
PurchaseLine."Document Type" := "Document Type"::Invoice;
5407 Unit of Measure Code Code 10
...option::"2"
....option::SecondChoice
SalesLine.Type := SalesLine.Type::Item;
SalesLine.Type := SalesLine.Type::"2";
Mark Brummel wrote: I think the compiler converts all fieldsnames tablenames and optionstrings to numbers. That's probably why it accepts these numbers
Comments
So the :: assignment is not allowed.
Try
http://www.mibuso.com/forum/viewtopic.php?t=7563
RIS Plus, LLC
If I omit PurchaseLine and make it: I get compile error : Unknown variable "Document Type"
"Unit of Measure Code" is optionfield.
My code works well, but it gets altered
Code: works too.
Did you change the datatype of field
:-s
I wrote it wrong (in code and in post), it's not option field.
I had 10 similar lines of code above that one so i guess I didn't think.
#-o
But still, how come the source changed?
The source after compile does not change to something like:
Or does it? :?:
That's probably why it accepts these numbers
Read this post
http://www.mibuso.com/forum/viewtopic.php?t=7563
:whistle:
I did read the post and I understand that but I think that author of that post ment that and
give same results.
But it doesn't mean that if I have CodeUnit with code and when I do compile, save, close codeunit, open codeunit that that line will say:
True?
But that's what the author of the other post (me ) is trying to say!
Maybe I should have put it in other words :oops:
The important thing is that the AUTHOR knows the meaning
Well, it's the end of the week O:)
Sorry for telling you what you meant :-#
Have a nice weekend
please have a look at:
http://www.mbsonline.org/forum/topic.asp?TOPIC_ID=6096
br
Josef Metz
Josef Metz
Guess the 'bug' is fixed =D>
Also option-fields, in reality, are integers.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!