Forum Discussion
What language are you using? If you're using something like JavaScript, you need to make sure that you include the parenthesis when calling a method (object.Clear()).
As for the Object Spy, are you viewing the "Advanced" properties or just the basic? If it's just the basic, the "Fields" tab I don't believe it is exposed.
As for your last question... I don't follow. Can you clarify?
- RodrigoJr6 years agoOccasional Contributor
I'm using DelphiScript, using "Advanced" properties.
the other question ignore- tristaanogre6 years agoEsteemed Contributor
The error message for the "Clear" method should contain, on the Additional Information tab indications as to some of the specifics of the problem. Can you share that information? Also, posting a sample of your code where the problem is occurring could be helpful.
As for the "Fields" tab, can you please post screenshots of the machine that is working versus the machine that isn't with regards to Object Spy? One thing you can try is to do an installation repair on the one that isn't working and see if something needs to be corrected in registry.
- RodrigoJr6 years agoOccasional Contributor
Ok, follow the code:
//-----------------------------
function WriteObjectValue (AObject: OleVariant; AValor: String = ''; ALIMPartite: Boolean = True): Boolean;
begin
Result: = False;
if (not (AObject.Enabled)) then
begin
Log.Warning ('Accessed object is disabled.');
Exit;
end;if (ALIMPartite) then
AObjeto.Clear;
AObject.Keys (helper_string.ConvertTextText (AValor));
Result: = True;
end;//-------------------------
also follows the images with the error and Object Spy.
Related Content
- 13 years ago
- 6 years ago
- 13 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago