Technical Forum

STEP 7 Additional Software

SCL issue on writing chars

Thread Starter: avafab   Started: 5/15/2012 5:15 PM   Replies: 1

« Previous thread Next thread »
Page 1 of 1 (2 items)
  5/15/2012, 5:15 PM
Joined 9/1/2011
Last visit: 5/20/2013
Posts: 79
Rating:
Rated: Very Good [2 out of 5 / rated 1 time(s)]. (1) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello smiffy,
I got an issue on SCL maybe you can tell me why.. 
see attache picuture

I explain, I wrote a function to clear a chars buffer (array of chars) at the end I want to overwrite some chars with some zero (B#16#00) void chars, but the SCL compiler doesn't let me do that, I'm forced to put an assignment with a char (so for the moment I put some spaces but I need to put this: B#16#00)

could you please help me, thank you.

Attachment: issue SCL chars.jpg  (4 Downloads)

Top
  5/15/2012, 5:39 PM
Joined 1/17/2007
Last visit: 5/22/2013
Posts: 760
Rating:
Rated: Excellent [4.33 out of 5 / rated 141 time(s)]. (141) 
Users with special expertise supervising conferences
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Use the CHAR#00; notation.
E.g. "Scanners".S1.RCV.BarcodeLabel[INDEX] := char#00;

Programming today is the race between software engineers building bigger and better idiot proof programs, and the universe producing bigger and better idiots.

So far, the universe is winning...
Top
Page 1 of 1 (2 items)
Actions