Re: Recordset Data Type
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Tue, 5 Dec 2006 16:18:59 -0600
"bz" <nospam@xxxxxxxxx> wrote in message
news:ug4M1gLGHHA.1468@xxxxxxxxxxxxxxxxxxxxxxx
Yours is the same as Bob's. I think I get the idea.<snipped>
val = rs!Rate & "" will return a string.
but what does this particular one do?
val = rs!Name & vbNullString
Please ignore that example. <g>
It is part of a method to manage both a 'string' or a 'number' return
(within a different expression) - but there is no reason to go there and I
should not have suggested it.
[vbNullString is essentially what in C would be a "\0" or "" in VB. A string
with a value of zero. Its primary use is in calling APIs. However, due to
VB's ETC (Evil Type Coercion <g>) it can occasionally be abused to be both a
'string' or a 'number' (zero). Using it to manage 'nulls' is a hack. <g>]
-ralph
.
- Follow-Ups:
- Re: Recordset Data Type
- From: Schmidt
- Re: Recordset Data Type
- References:
- Recordset Data Type
- From: bz
- Re: Recordset Data Type
- From: Ralph
- Re: Recordset Data Type
- From: bz
- Re: Recordset Data Type
- From: Ralph
- Re: Recordset Data Type
- From: bz
- Recordset Data Type
- Prev by Date: Re: Recordset Data Type
- Next by Date: Re: Recordset Data Type
- Previous by thread: Re: Recordset Data Type
- Next by thread: Re: Recordset Data Type
- Index(es):
Relevant Pages
|
Loading