Message 1 of 7
casting from TypedValue with Type = (int)DxfCode.Bool
Not applicable
11-04-2007
09:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have successfully stored a boolean value into an Xrec using a TypedValue with Type of (int)DxfCode.Bool.
When I retrieve it the value is a 1 or 0 according to whether I had input True of False. So far, so good. The problem is that I am so far unable to cast this TypedValue.Value of 1 or 0 to either a bool or a Boolean or even an int or a long. How do I get that TypedValue.Value that is returned into another variable?
In the attached file what I am referring to is in the method
public bool getBoolVar(string VarName)
Thanks for your advice.
I have successfully stored a boolean value into an Xrec using a TypedValue with Type of (int)DxfCode.Bool.
When I retrieve it the value is a 1 or 0 according to whether I had input True of False. So far, so good. The problem is that I am so far unable to cast this TypedValue.Value of 1 or 0 to either a bool or a Boolean or even an int or a long. How do I get that TypedValue.Value that is returned into another variable?
In the attached file what I am referring to is in the method
public bool getBoolVar(string VarName)
Thanks for your advice.