Author Topic: Map delete key  (Read 1303 times)

0 Members and 1 Guest are viewing this topic.

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Map delete key
« on: May 28, 2015, 05:26:27 PM »
is there a way to delete a map entry ? maybe using Map.Query with SQL delete ... if so some examples will be great help (been more than 5 years since i last wrote sql queries)
When Voice command gets tough, use hand gestures

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
Re: Map delete key
« Reply #1 on: May 28, 2015, 05:41:19 PM »
in the example below where it says "PTVL" (without the "") is the map name

in between the "" where it says Map Key is where you will put the key that you want to delete


Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.5-->
<command id="1184" name="Delete map entry" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Map.Query</cmdType>
    <params>
      <param>delete from PTVL where fromKey="Map Key"</param>
    </params>
    <cmdRepeat>{#M}</cmdRepeat>
  </action>
</command>

hope this is what you are looking for

Note: Post by Jitterjames on deleting map key's  http://voxcommando.com/forum/index.php?topic=1649.msg14354#msg14354
« Last Edit: May 28, 2015, 06:06:12 PM by PegLegTV »

Haddood

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: Map delete key
« Reply #2 on: May 28, 2015, 06:27:57 PM »

hope this is what you are looking for


Bulls Eye ... and sorry for re-posting I did search the forum ... for some reason I did not find the mentioned post
When Voice command gets tough, use hand gestures

PegLegTV

  • $upporter
  • Sr. Member
  • *****
  • Posts: 497
  • Karma: 43
    • View Profile
Re: Map delete key
« Reply #3 on: May 28, 2015, 06:49:40 PM »
I did the same thing a couple months back with the same thing  :bonk lol