# How can I get and edit a FString inside a Struct inside a TArray using UProperties

**URL:** <https://forums.unrealengine.com/t/how-can-i-get-and-edit-a-fstring-inside-a-struct-inside-a-tarray-using-uproperties/451422>\
**Category:** Editor Scripting\
**Tags:** UProperty, tarray, ustruct, unreal-engine, UE4, CPP, question\
**Created:** [June 28, 2019, 2:41pm UTC](https://forums.unrealengine.com/t/how-can-i-get-and-edit-a-fstring-inside-a-struct-inside-a-tarray-using-uproperties/451422 "2019-06-28T14:41:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YamikaDesu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YamikaDesu](https://forums.unrealengine.com/u/YamikaDesu)\
**Post date:** [June 28, 2019, 2:41pm UTC](https://forums.unrealengine.com/t/how-can-i-get-and-edit-a-fstring-inside-a-struct-inside-a-tarray-using-uproperties/451422/1 "2019-06-28T14:41:33Z")

</div>

Hello, I have these structs:

```
USTRUCT(BlueprintType)
struct FBaseCreateEditVariable {

	GENERATED_USTRUCT_BODY()
public:
	FBaseCreateEditVariable() {}
	UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (DisplayName = "variableName"))
		FString variableName = "";
	UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (DisplayName = "variableValue"))
		FString variableValue = "";

};

USTRUCT(BlueprintType)
struct FCreateEditVariable : public FInteractStruct {

	GENERATED_USTRUCT_BODY()
public:
	FCreateEditVariable() {}

	UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (DisplayName = "variables"))
		TArray<FBaseCreateEditVariable> variables;

};

```

So if I have these two variables:

```
UArrayProperty* arrayProp; //The property "variables" inside "FCreateEditVariable" struct
void * dir2; //The address of "variables"'s parent ("FCreateEditVariable")

```

How can I get and how can I edit dynamically using Uproperty and “for/while” all of the FString properties inside FBaseCreateEditVariable (can be more than these two FString variables)
