![]() |
Variable Change Detection/Event
I was hoping there was some way to detect when a variable is changed, through an event I would prefer, something like onVariableChange(varname, newvalue, oldvalue) or something. The reason for this is that I wish to sync a serverside and clientside object without using a loop to detect a change so I can get data on clientside without the use of client flags since those can be messed up too easily.
I figure something like this might exist already with the way Gui Controls act. By the way, still want custom object types, would make my work a whole lot easier and cleaner. Made a system to mimic it but I prefer the genuine article. |
Yes this would be nice... Maybe add it as a function to TStaticVars? I think normal Graal vars would add a bit of lag if you had fifty million variables throwing events left and right (even if they aren't defined). Another option is to do like varname.eventonchange = true; and then it would call the varname.onChanged() or whatever.
|
| All times are GMT +2. The time now is 12:52 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.