File Exchange
Try Origin for Free
The Origin Forum
Home
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
|
Send File to Tech support
Username:
Password:
Save Password
Forgot your Password?
|
Admin Options
All Forums
Origin Forum for Programming
Forum for Origin C
Class
New Topic
Reply to Topic
Printer Friendly
Author
Topic
b0211030
Bangladesh
2 Posts
Posted - 05/24/2020 : 08:32:40 AM
Can any one explain the use of parenthesis for the following code:
Originobj = bs;
bs=(Originobj)lay;
Chris D
428 Posts
Posted - 05/26/2020 : 07:20:49 AM
It "casts" a variable to a different type as long as they are compatible.
In you example, it casts the instance of Layer to an instance of OriginObject.
See:
http://www.cplusplus.com/doc/oldtutorial/typecasting/
Thanks,
Chris Drozdowski
Originlab Technical Support
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Viewer Forum
Origin Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000