Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text Box default len() ?
Message
 
À
08/05/2003 12:13:20
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00786299
Message ID:
00786345
Vues:
18
Data is Fill1 character(15)

Current record shows 'p8 ' in text box.
Edit does this 'p8-123 '

Sucker grows in WIDTH.

Blow up is as follows:
Cannot set column 'ap_fill1' to 'p8-123 '. The value violates the MaxLength limit of this column.

Line in red ;)
Line 510: dsGetDepapplCL.Tables[0].Rows[0]["ap_fill1"] = MmTextBox7.Text ;

I have added a .Trim() to the textbox.text line but that is crap! Because I can now run through the above line and fail with :

Cannot set column 'ap_fill1' to 'p82345 '. The value violates the MaxLength limit of this column.

in my line of code:
oDepapplCL.SaveDataSet(dsGetDepapplCL);

This only happens when I have a SHORT amount of text and try to expand on it. If I start with 'ABCDEFG-HIJ' and want it to become 'ABCD-HIJ' no problem. Now try to go back to 'ABCDEFG-HIJ' and dead in the water.

__Stephen





>More details Stephen (although I probably won't be able to help you if your problem is specific to MM, since I'm not using it).
>
>You say it blows up ... ok, so what's the line of code, what's the error, etc.etc.etc.
>
>Inquiring minds want to know. <g>
>
>~~Bonnie
>
>>I am getting caugth in editing a textbox that my last edit was only 4 chr wide. I now want to fix it to a len() of 8 and the actual server column in set as char(15).
>>
>>I blow up when I am forcing the edit back into the ds so I can check for changes. If I leave it alone and let ds.SaveDataSet() do it's voodoo it's fine. User needs the changes loged so I'm stuck in what I'm doing for now.
>>
>>Net.2003 MM Beta 9
>>
>>TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform