변수 초기화 방법 질문

가령 File 이라는 변수를 설정하고
중간에 get text 이용하여 File 에 저장한뒤
다시 변수를 비우고 싶어서 File을 아무것도 없는상태로 만드는 방법을 알수있을까요???

@user118

  1. Use the Assign activity to set the value of the variable ‘File’ to the desired text or value:
    Variable: File
    Value: “This is some text to be saved in a file.”

  2. Use the Write Text File activity to save the value of the variable ‘File’ to a file:
    File Path: “C:\Path\To\Your\File.txt”
    Text: File

  3. Use another Assign activity to empty the variable ‘File’:
    Variable: File
    Value: “” (To set it to an empty string)

    OR

    Variable: File
    Value: Nothing (To set it to Nothing)

Hi @user118

If “File” is a String variable:

 File = ""
or
 File = Nothing

Hi @user118

Where you want to change the variable value to nothing
Then take an assign activity

- Assign -> variable = Nothing

Note - In the place of Variable give your variable name if it is File give File
then File = Nothing
image

Hope it helps!!

Hi @user118

File=Nothing

image

I hope it helps!!

@user118
변수를 비우려면 다음을 사용할 수 있습니다.
할당: 파일= 없음

Hi @user118

Use an Set Variable value activity to empty the “File” variable:

Hope it helps!!

Thank you for answer

Thank you for answer
i understand it

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.