Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing Data Row column values and string values
Message
 
 
To
10/07/2013 13:18:51
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01578028
Message ID:
01578137
Views:
41
>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.

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.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform