Jump to content
Henry Olive

Character Problem

Recommended Posts

Good Day

Delphi10,  FB-3, SQLDataset, DataSetProvider, CDS, DataSource
 

MasterTable TNAME Field.Value = 'A.Cap-'  // There is - at the end

When I insert a new record into the DetailTable my code is like below

 

DetailTable.FieldByName('TNAME').asString := MasterTable.FieldByName('TNAME').asString;

 

After Post & ApplyUpdate when i check releated record in the Database i see TNAME value

in DetailTable is 'A.Cap'  // No - at the end,  There should have been 'A.Cap-'   

but in Database,  MasterTable TNAME value = 'A.Cap-' // there is - at the end which is correct

 

What is wrong ?

Thank You


 

 

 

 

 

 

Share this post


Link to post

The problem is SOLVED
The Field's size in SQLDataset was 5 (should have been 8 )
I change the Field's size to 8 and problem solved 

I'm really very very sorry i firstly should have checked that size property

I apologize to everyone

THANK YOU

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×