How to change Value of byte type in the function?

Hi! I have a problem of custom char.

I was making program use custom char and function.

My plan was print another character according to Function Value.

So, i declared byte type array for use custom char.

After declared byte type array, i wrote the code to change value of byte type array.

But after the function is activated byte type array wasn't change.

How to change Value of byte type in the function?

Please post your code, in code tags as explained in item #6 of this post...
Read this before posting a programming question ...

oh! I'm sorry Here is my code

but no code tags

You're simply defining new variables in your function that go out of scope almost immediately. To be of any use, you can simply assign the values to the global variables of the same names.

What happened to the code tags?

Here, I've got a spare pair you can have: [code][/code]

AWOL:
You're simply defining new variables in your function that go out of scope almost immediately. To be of any use, you can simply assign the values to the global variables of the same names.

What happened to the code tags?

Here, I've got a spare pair you can have: [code][/code]

Oh.. I'm sorry... My mistake..

#include "LiquidCrystal.h"

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

int cmd = 0;

byte a_1[8] = {
  B00000,
  B00000,
  B00000,
  B00000,
  B00000,
  B00000,
  B00000,
};

byte a_2[8] = {
  B00000,
  B10001,
  B00000,
  B00000,
  B10001,
  B01110,
  B00000,
};

void korean(int i)
{
  if(i==1)
  {
  byte a_1[8] = {
  B10101,
  B11101,
  B10101,
  B11101,
  B00000,
  B01110,
  B01110,
                  };
  cmd = 1;
  }
  else
  {
  byte a_1[8] = {
  B00000,
  B00000,
  B00000,
  B00000,
  B00000,
  B00000,
  B00000,
                  };
  }
}

void setup() {
  Serial.begin(115200);
  korean(1);
      lcd.createChar(0, a_1);
  lcd.begin(16, 2);  
  lcd.write(byte(0));
}

void loop() {
}

When you have this inside the function korean():

void korean(int i)
{
  if(i==1)
  {
  byte a_1[8] = {

the array a_1 is not visible outside the function.

Also there is no operator to perform an assignment of one array to another in C++. You have to use a memory function like memcpy().

void korean(int i)
{
  if(i==1)
  {
  byte a_1[8] = {
  B10101,
  B11101,
  B10101,

needs to be:

void korean(int i)
{
  if(i==1)
  {
  a_1[0] = B10101;
  a_1[1] = B11101;
  a_1[2] = B10101;

etc.