This is a discussion on Problem with Object Conversion [in vb.net] within the Microsoft .NET Tutorials and Articles forums, part of the Articles and Tutorials category; Hi All ! esp. For Seniors i have the :- code { Dim DrObj as Object = ksDr.KSGetValue(\"SELECT SetId FROM ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Problem with Object Conversion [in vb.net]
Hi All ! esp. For Seniors i have the :- code { Dim DrObj as Object = ksDr.KSGetValue(\"SELECT SetId FROM SetDetails\" ![]() Dim dobj as integer = DrObj If dobj =0 blah blah blah blah } KSGetValue is a custom-Sub which Returns a value thru a Select Query ! Can the same be Done as dobj = Conversion.Int(DrObj) dobj = Cint(DrObj) Dim dobj as integer = DrObj Which one of these 3 is Recommended ??? Please do Reply with Solution.... Shankar/Kartik. Post edited by: Kartik, at: 2004/12/29 09:52 |
|
|||
|
Re:Problem with Object Conversion [in vb.net]
Clarification :
KSGetValue returns a Scalar Object ; But then; In my Code-Blocks; where i\'m Retrieving a Particular Single Entry From SQL back-end; i\'m Not Getting The Value i wanted the Code to Return ?! So, i was asking Which among these 3 to use ? |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| comp.lang.c Answers to Frequently Asked Questions (FAQ List) | Steve Summit | Tech FAQ | 0 | 07-03-2004 08:27 PM |
| comp.lang.eiffel Frequently Asked Questions (FAQ) | Franck Arnaud | Tech FAQ | 0 | 06-28-2004 03:43 PM |