jaja-oliveira
13 years agoOccasional Contributor
Can't get value from WndCaption when working with TDBEdit
Hi,
I'm having trouble using the WndCaption property. I want to post in the log the content of a vclobject, to ensure that the value entered by the command keys was correct, for example:
w5:= w4.VCLObject('gpxDados').VCLObject('GroupBox1').VCLObject('edtCdCEI');
w5.Keys(Variable1);
Log.Message('Field 1: '+ w5.WndCaption);
The problem is that when I debug, the WndCaption is empty. It only have values if I click in the save button (of my application) and then open the screen again, like if I was going to edit something. Do you have any tip for me?
This the VCLClass of this VCLObject('edtCdCEI') is TDBEdit
Thank's a lot!
I'm having trouble using the WndCaption property. I want to post in the log the content of a vclobject, to ensure that the value entered by the command keys was correct, for example:
w5:= w4.VCLObject('gpxDados').VCLObject('GroupBox1').VCLObject('edtCdCEI');
w5.Keys(Variable1);
Log.Message('Field 1: '+ w5.WndCaption);
The problem is that when I debug, the WndCaption is empty. It only have values if I click in the save button (of my application) and then open the screen again, like if I was going to edit something. Do you have any tip for me?
This the VCLClass of this VCLObject('edtCdCEI') is TDBEdit
Thank's a lot!