![]() |
Telelogic TAU (steve huntington) | ![]() |
Topic Title: How to assign the value to the BYTE variable? Topic Summary: BYTE, unsigned char, assignement Created On: 31-May-2005 01:25 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Dear members.
I made the BYTE type which is made from 'unsigned char'. So I want to assign the value to variable of the this type. But TAU don't allow to me while showing me "syntax error"? What is incorrect? Sample code is as the follows. syntype BYTE = 'unsigned char'; BYTE byte; 'unsigned char' byte2; byte = 'a'; --> syntax error byte2 = 'a'; --> syntax error How can I solve this problem? Best regards. |
|
![]() |
|
![]() |
|
Hi Younghae Jung,
we can can not directly assign values to 'unsigned char'. We should go for inline assignment. The syntax for assigning values to 'unsigned char' is 'unsigned char' uc; Character s1='h'; uc = [[#(s1)]]; OR syntype BYTE= 'unsigned char'; BYTE b; Character s1='A'; b = [[#(s1)]]; Hope this Helps. With Best Regards Madan Edited: 3-Jun-2005 at 22:29 by Madan Mohan Tito A |
|
![]() |
Telelogic TAU
» TAU/Developer
»
How to assign the value to the BYTE variable?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.