what's the problem? It gives you a string that can be loaded with loadstring that will be equivalent to the function you gave it, ie. function() loadstring(CETrainer.CEMemo1.Lines.Text) end. Running that function will call loadstring and create a function from the current text (if it's valid) but you'd have no access to it since you don't store or call it.
If you want a string version of the function created by loadstring, pass the result of loadstring not your own function. _________________
He's not giving it a string though, he's giving it an anonymous function that would call loadstring. My assumption is that he meant to give it the result of loadstring (which is the function created from the string it's given), but got confused about it taking a function and so wrapped it in an anonymous one. _________________
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