Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing Data Row column values and string values
Message
De
10/07/2013 15:42:08
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01578028
Message ID:
01578141
Vues:
47
>>Dunno Viv,
>>
>>( Back from hibernation ? )
>>
>>There is somewhere a conversion process ( int x = 0 will be converted to an empty string, etc)
>>So, why not reuse that code instead of doing that conversion again with other code ?
>>
>>
>Because the method receives a string. From the C++ application we communicate with VFP application by passing XML strings back and forth.
>
>I am working on C# conversion of the VFP class library, so C++ application is going to remain as is.
>

Then, look at the vfp code, see what is done, and create a method (generic) that does the conversion like the vfp code does

Shouldn't be that hard


>It is passing the following string
>
>
><func>schedulebooking</func><tlNoCheck>.T.</tlNoCheck>
><tcactionlist><ACCOUNT></ACCOUNT><ADDIT_NO>
></ADDIT_NO><AMT_PAID></AMT_PAID><BACKCOLOR>33023</BACKCOLOR><BASE_ID></BASE_ID>
><BOOKING_ID>1921000000.00000</BOOKING_ID><CATEGORY>ADULTPROG</CATEGORY>
>
>(string truncated).
>
>So, in my code I first convert this string into Dictionary String, String (although I also added the same thing for String, Object) and then I want to compare, say, Addit_No which I passed with the value I have in the row in the table. In the table it's integer 0 and as you see it comes as empty string. So, they should be treated as the same and not be recorded in the history.
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform