How delete entries from screen copy?

Hi.

I am trying to delete entries from a dictionary copied from screen to a local variable. After eliminating the entries with a non numeric value at first position I need to create a file with remaining data .

Attached are the code and log.

What am I doing ?
 

Attachments

  • Screenshot_20240319_064634_MacroDroid.jpg
    Screenshot_20240319_064634_MacroDroid.jpg
    546.5 KB · Views: 5
  • Screenshot_20240319_064453_MacroDroid.jpg
    Screenshot_20240319_064453_MacroDroid.jpg
    1.1 MB · Views: 5

Dm114

Well-known member
Why don't you just iterate and save to file if the iterator value excludes a digit?
You're right but the problem is that some records are often missing (probably not written due to too fast iteration vs. physical write operation). So, when possible, it's much better to write to file once from a unique string...
 

Dm114

Well-known member
Hi.

I am trying to delete entries from a dictionary copied from screen to a local variable. After eliminating the entries with a non numeric value at first position I need to create a file with remaining data .

Attached are the code and log.

What am I doing ?
You are using Magic Text for Arrays instead of Dictionaries (check Help option of the Iteration action)
 

Endercraft

Moderator (& bug finder :D)
2 errors : you wrote [iterator_index], which isn't valid ([iterator_array_index] for array and [iterator_dictionary_key] for dictionary (your case)) ; right now you are deleting the key "iterator_index" and not "[iterator_index]". In your case you need to write this in Define manually : [[iterator_dictionary_key]]
 

Dm114

Well-known member
2 errors : you wrote [iterator_index], which isn't valid ([iterator_array_index] for array and [iterator_dictionary_key] for dictionary (your case)) ; right now you are deleting the key "iterator_index" and not "[iterator_index]". In your case you need to write this in Define manually : [[iterator_dictionary_key]]
It's exactly what I just said!

To really help users, we'd better give them "tools" to find solutions by themselves unless they really can't find at all. If so, we can give them the exact solution.

Understanding is the best way to learn!
 
Last edited:
Top