Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
Posted: Sat Oct 03, 2020 10:43 am Post subject: Way to Check Symbol list using lua
@Dark Byte
is there a better way to do check if a specific symbol exists in frmSymbolhandler or Symbol List
this is the best I could come up with
Code:
myVal = 10
b = getMemoryViewForm().frmSymbolhandler.ListView1.Items
for j=0,b.Count-1 do
if b.Item[j].Caption == 'myVal' then
unregisterSymbol('myVal')
end
end
registerSymbol('myVal',myVal)
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
Posted: Sat Oct 03, 2020 1:20 pm Post subject:
i figured it out thanks anyway for reply
i was trying the other way and it was not working so....
Code:
myVal = 10
unregisterSymbol('myVal')
print('myVal is', tostring(getAddressSafe('myVal')))
if not getAddressSafe('myVal') then
registerSymbol('myVal',myVal)
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum