Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 6 of 6 total |
AsLargeInt |
Tue, Apr 24 2007 11:08 AM | Permanent Link |
Is there a way to get and set a field as a LargetInt / Int64? At the
moment I'm reading the field using FieldByName('MyField').AsString because AsInteger is a 32 bit integer and I know I need Int64. Pointers to solutions welcome. Thanks! /Matthew Jones/ | |
Tue, Apr 24 2007 1:36 PM | Permanent Link |
Sean McCall | Internally I call them serial numbers and have a type Serial =
TLargIntField. You should get the idea: function ValueSerial(AValue: TField): Serial; begin if AValue is TLargeIntField then begin Result := TLargeIntField(AValue).AsLargeInt; end {if large integer field} else begin Result := AValue.AsInteger; end; {if not a large integer field} end; {procedure} mattjones@cix.co.uk (Matthew Jones) wrote: > Is there a way to get and set a field as a LargetInt / Int64? At the > moment I'm reading the field using FieldByName('MyField').AsString because > AsInteger is a 32 bit integer and I know I need Int64. Pointers to > solutions welcome. Thanks! > > /Matthew Jones/ |
Wed, Apr 25 2007 1:47 AM | Permanent Link |
"Ralf Bieber" | Matthew Jones wrote:
Hi Jones > Is there a way to get and set a field as a LargetInt / Int64? At the > moment I'm reading the field using FieldByName('MyField').AsString > because AsInteger is a 32 bit integer and I know I need Int64. > Pointers to solutions welcome. Thanks! > > /Matthew Jones/ MyInt64 :=FieldByName('MyField').Value; Ralf -- |
Wed, Apr 25 2007 4:18 AM | Permanent Link |
Does that really work? What is a Value - is it a variant? I'll have to go
look. /Matthew Jones/ | |
Wed, Apr 25 2007 8:43 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Matthew,
<< Does that really work? What is a Value - is it a variant? I'll have to go look.>> Yep, it's a variant. However, I believe only D6 and above support Int64 variants. -- Tim Young Elevate Software www.elevatesoft.com |
Wed, Apr 25 2007 10:51 AM | Permanent Link |
I'm using D7 or D2007 so that will be good. I'll use that then.
/Matthew Jones/ |
This web page was last updated on Thursday, March 28, 2024 at 06:05 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |