|
| 24 Sep 2017 01:20 PM |
| How can I go through all of a Datastores children and print their values (without knowing what the children are)? |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
|
| 24 Sep 2017 01:28 PM |
| I mean how can I go through all the keys |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 24 Sep 2017 01:30 PM |
You don't.
You could store all the keys but that won't scale. |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 24 Sep 2017 01:30 PM |
| for i,v in next, ################ do is very prone to errors for obvious reasons |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 01:38 PM |
| What I need to do is get the DataStore and get all the Keys set in there and print their values. For example, DataStore: Key1 = ###### #### = Value2 So it would print: Value1 Value2 But how can I do this without knowing what is set in the datastore? Thanks. |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 01:42 PM |
| What was the ####### part? |
|
|
| Report Abuse |
|
|