Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-03-2007, 11:35 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
__________________
Reply With Quote
  #2  
Old 06-07-2007, 12:37 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
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.
__________________
Do it with a DON!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:21 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.