1

I have a WideChar array . I would like to make it empty ( currently filled with garbage ) . I want to know how to do this with a WideChar array as we do it with a char array with = #0;

Thanks in Advance

2
  • i will answer it myself . FillChar( ArrName , SizeOf(ArrName) , #0) is the way to do it. Commented Aug 7, 2012 at 13:36
  • Please post your comment as an actual answer, and then you can mark it as accepted. This won't earn you any rep, but it will tell people you've gotten an answer and make it easier for people who find your question in a search later to see the answer, too. Answering your own question is acceptable here; see the FAQ for guidelines. :-) Commented Aug 8, 2012 at 21:50

1 Answer 1

2

The delphi function FillChar is the way to do it . If you have an array named Arr1 , simply use FillChar(Arr1,SizeOf(Arr1),#0) to accomplish the goal.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.