x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Can someone explain to me how to fill a DataTable using C++?

Okay, I've been trying to understand the engine code about the datatables but I really don't understand how to fill a datatable using C++. I've initialized the datatable with the correct structure which contains only two members: "Name" and "Weapon". But I really don't understand how to put the values that I want in my datatable. Can someone help me please? I've been searching around the internet but can't seem to find anything...

alt text

Product Version: UE 4.21
Tags:
code.jpg (46.6 kB)
more ▼

asked Nov 28 '18 at 02:32 AM in C++ Programming

avatar image

Evans Bohl
115 6 11 15

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi supaflakes,

To add values to your data table, you need to use AddRow:

 DataTable->AddRow("Jojo", FDialogStruct { "Jojo", "Sword" });
 DataTable->AddRow("Momo", FDialogStruct { "Momo", "Axe" });

more ▼

answered Nov 28 '18 at 07:45 PM

DarkwindRichard (suspended)
avatar image Evans Bohl Nov 29 '18 at 12:18 AM

Oh that's what I needed to put as a second argument. I feel dumb... Thanks a lot anyway!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question