e.
It's up to you... J
*From:* delphi-boun...@delphi.org.nz
[mailto:delphi-boun...@delphi.org.nz] *On Behalf Of *Ross Levis
*Sent:* Tuesday, 1 February 2011 18:45
*To:* 'NZ Borland Developers Group - Delphi List'
*Subject:* Re: [DUG] Validating a TListItem exists
ListView.Items.Ind
lto:delphi-boun...@delphi.org.nz] On
Behalf Of Ross Levis
Sent: Tuesday, 1 February 2011 18:45
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Validating a TListItem exists
ListView.Items.IndexOf() does the trick, so I'll do that in the meantime.
[mailto:delphi-boun...@delphi.org.nz] On
Behalf Of Ross Levis
Sent: Tuesday, 1 February 2011 13:30
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Validating a TListItem exists
I was hoping to avoid that. I was thinking there may be a way of validating
that it is st
lf Of Ross Levis
Sent: Tuesday, 1 February 2011 13:30
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Validating a TListItem exists
I was hoping to avoid that. I was thinking there may be a way of validating
that it is still a TListItem the pointer is pointing to, so
phi.org.nz [mailto:delphi-boun...@delphi.org.nz] On
Behalf Of Jolyon Smith
Sent: Tuesday, 1 February 2011 10:59 AM
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Validating a TListItem exists
AFAIK when an item is deleted from a listview it is also free'd.
Unavoidably.
Hi
Sorry about the delayed response. Without knowing your system and
why you cant guaranty an item is deleted from the TList at the same
time as the ListView an option might be to use the listview in
ownerdata mode so that the listview is populated from the TList.
land Developers Group - Delphi List'
Subject: [DUG] Validating a TListItem exists
I'm storing some TListItem's in a TList. Some of these items could be
removed from the listview at some stage. I know the items should be removed
from the TList when removed from the listview,
I'm storing some TListItem's in a TList. Some of these items could be
removed from the listview at some stage. I know the items should be removed
from the TList when removed from the listview, but don't ask.
Is there a simple method to determine if a listitem reference is still valid
and exis
t;
>
>
>
>
>
>
> *From:* delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
> *On Behalf Of *Kyley Harris
> *Sent:* Tuesday, 18 January 2011 1:40 p.m.
>
> *To:* NZ Borland Developers Group - Delphi List
> *Subject:* Re: [DUG] Validating CDS files
>
&
rs Group - Delphi List
Subject: Re: [DUG] Validating CDS files
> Those developers that came back with "TO DO" lists were perhaps
themselves
> not taking the time to understand the customers problems. The
customer
> told
> them "those 10,000 f
> You are making an assumption that the analysis has not been already done.
> You are assuming that people are not adequately informed.
That can only be determined by inquiring. I'd rather not assume that
someone is fully informed - that is a more dangerous assumption. Of course,
one can never
you
would have got there ;-)
Cheers,
David.
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On
Behalf Of Kyley Harris
Sent: Tuesday, 18 January 2011 1:40 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Validating CDS files
I'm wondering
f Matthew Comb
>> Sent: Tuesday, 18 January 2011 11:12 a.m.
>> To: NZ Borland Developers Group - Delphi List
>> Subject: Re: [DUG] Validating CDS files
>>
>> > Those developers that came back with "TO DO" lists were perhaps
>> themselves
>> &
> You seem to be missing your own time and money factor... an hour spent
> analysing a problem can save days spent wasting time building the solution
> that was asked for but which ultimately wasn't needed.
You are making an assumption that the analysis has not been already done.
>
>
>"Thats
njoying my popcorn as I watch...
>
> -Original Message-
> From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
> On
> Behalf Of Matthew Comb
> Sent: Tuesday, 18 January 2011 11:12 a.m.
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [D
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Validating CDS files
Mmmm, I'm enjoying my popcorn as I watch...
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.
Mmmm, I'm enjoying my popcorn as I watch...
-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On
Behalf Of Matthew Comb
Sent: Tuesday, 18 January 2011 11:12 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Validating CDS
You seem to be missing your own time and money factor... an hour spent
analysing a problem can save days spent wasting time building the solution
that was asked for but which ultimately wasn't needed.
"Thats just rubbish"
Such a comprehensively and well presented case is hard to argue with.
> Those developers that came back with "TO DO" lists were perhaps themselves
> not taking the time to understand the customers problems. The customer
> told
> them "those 10,000 features are great, but we'd really like X, Y and Z",
> so
> the developers simply came back to you with that list of "X
Those developers that came back with "TO DO" lists were perhaps themselves
not taking the time to understand the customers problems. The customer told
them "those 10,000 features are great, but we'd really like X, Y and Z", so
the developers simply came back to you with that list of "X, Y and Z".
delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
> On Behalf Of Matthew Comb
> Sent: Monday, 17 January 2011 10:34 p.m.
> To: NZ Borland Developers Group - Delphi List
> Cc: 'NZ Borland Developers Group - Delphi List'
> Subject: Re: [DUG] Validating CDS fi
>
> -Original Message-
> From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
> On
> Behalf Of Matthew Comb
> Sent: Monday, 17 January 2011 22:34
> To: NZ Borland Developers Group - Delphi List
> Cc: 'NZ Borland Developers Group - Delphi List&
Developers Group - Delphi List
Cc: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Validating CDS files
Hi Jolyon,
I almost wish I hadn't asked this question now :)
I'm well aware of the options, and setting up a webservice to retrieve a
hashed/checksumed payload s
- Delphi List
Cc: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Validating CDS files
Hi Jolyon,
I almost wish I hadn't asked this question now :)
I'm well aware of the options, and setting up a webservice to retrieve a
hashed/checksumed payload set, is our pr
: Monday, 17 January 2011 22:34
To: NZ Borland Developers Group - Delphi List
Cc: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Validating CDS files
Hi Jolyon,
I almost wish I hadn't asked this question now :)
I'm well aware of the options, and setting up
no ?
>
>
> -Original Message-
> From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
> On
> Behalf Of Matthew Comb
> Sent: Monday, 17 January 2011 19:20
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [DUG] Validating CDS files
&
> much due to an infrequent access to some data that is already corrupt on
> the
> server as it is to some sporadic wireless network corruption, no ?
>
>
> -Original Message-
> From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
> On
> Behalf Of M
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Validating CDS files
Paul,
Thanks for your thoughts, I was tending towards reverse engineering the
format, I could not see any obvious tokens at footer, and wondered if
someone had beaten me to it.
I actually prefer the simplicity
Paul,
Thanks for your thoughts, I was tending towards reverse engineering the
format, I could not see any obvious tokens at footer, and wondered if
someone had beaten me to it.
I actually prefer the simplicity of your idea of compressing/encrypting
the xml file. Thats a tidyier solution for now u
Matthew wrote:
> I wasn't suggesting that wireless was changing byte
> structure, but if you are streaming data, and your datastream
> gets disconnected, then you could end up with an incomplete transfer.
>
> I'm not 100% sure that midas catches all scenarios when
> working off a remote data i
ather than in the communication of the data
> ?
>
>
> Because if that's the case then checksuming will of course be a waste of
> time
>
>
> -Original Message-
> From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
> On
> Behalf Of Todd
gt; Behalf Of Todd
> Sent: Monday, 17 January 2011 14:22
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [DUG] Validating CDS files
>
> Hi Matthew
>
> It sounds like comparing a MD5 hash of the CDS file prior to sending and
> subsequent to receiving the dat
course be a waste of
time
-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On
Behalf Of Todd
Sent: Monday, 17 January 2011 14:22
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Validating CDS files
Hi Matthew
It sounds like compar
ously/intuitively means "is a valid XML representation
>>>> of a
>>>> CDS file" but for a CDS file, if you dumped it from a client data set
>>>> in
>>>> the
>>>> first place, what additional valida
It might be best to ask on stackoverflow at this point.
From looking at the code for LoadFrom and SaveTo Stream it doesn't look
like there is any information that you can use to validate the file
format easily.
You are probably stuck with loading the .cds file to validate it.
Alister Christie
Hi Jolyon,
Everything you say is right. I could bore you with how our smart client
architecture works , how much data we're pushing and what happens at each
point, but at the end of the day, it all will end up back to the beginning
which is the need to know the state of a binary CDS file before lo
> What I'm really after is a file level test to check that file should even
> be attempted. e.g. open file stream seek start and seek end and check a
> couple of bytes... that type of thing.
It seems to me that such a check would be incomplete and therefore
unreliable and that you may introduce th
org.nz]
> On Behalf Of Matthew Comb
> Sent: Monday, 17 January 2011 12:44 p.m.
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [DUG] Validating CDS files
>
> The driver for the question, is that we have some application client
> datasets which are put into a defa
gt; the
>>> first place, what additional validation would be needed to ensure that
>>> it
>>> is
>>> a CDS file ?
>>>
>>>
>>> -Original Message-
>>> From: delphi-boun...@delphi.org.nz
>>> [mailto:delphi-boun...@delphi.
: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On
Behalf Of Matthew Comb
Sent: Monday, 17 January 2011 12:44 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Validating CDS files
The driver for the question, is that we have some application client
datasets
le ?
>>
>>
>> -Original Message-
>> From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
>> On
>> Behalf Of Matthew Comb
>> Sent: Monday, 17 January 2011 10:27
>> To: NZ Borland Developers Group - Delphi List
>> Subjec
-
> From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
> On
> Behalf Of Matthew Comb
> Sent: Monday, 17 January 2011 10:27
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [DUG] Validating CDS files
>
> Hey Cam, for space size reasons, we're us
hat it is
a CDS file ?
-Original Message-
From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On
Behalf Of Matthew Comb
Sent: Monday, 17 January 2011 10:27
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Validating CDS files
Hey Cam, for space size reasons, we
You could of course just try to load it
very roughly:
function IsCDSVaild(file : string) : boolean
var
cds : TClientDataSet
begin
result := true;
cds := TClientDataSet.Create;
try
cds.LoadFromFile(file);
except
result := false;
end
cds.free;
end
Alister Christie
Com
sage-
> From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz]
> On Behalf Of Matthew Comb
> Sent: Monday, 17 January 2011 10:03 a.m.
> To: NZ Borland Developers Group - Delphi List
> Cc: NZ Borland Developers Group - Delphi List
> Subject: [DUG] Validating CDS files
>
Developers Group - Delphi List
Subject: [DUG] Validating CDS files
Does anyone know if there is a way to Validate a CDS file (midas) before
attempting to load it into the dataset ?
Matt
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@del
Does anyone know if there is a way to Validate a CDS file (midas) before
attempting to load it into the dataset ?
Matt
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
U
I let it happen and then capture the exception
Simon Garton wrote:
Quick question : how do I validate uniqueness in a TDataset ? I have
some data aware controls and a TDBNavigator; I can check other
validation stuff in the BeforePost event, but is there a sensible way
of testing whether the
The most basic way of doing this would be to do a bit of sql in your
BeforePost event and see if that field is already used. If you don't
know anything about the data underneath the TDataSet then this could be
a bit tricky.
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
Quick question : how do I validate uniqueness in a TDataset ? I have some
data aware controls and a TDBNavigator; I can check other validation stuff
in the BeforePost event, but is there a sensible way of testing whether the
field name (which has a unique constraint in the database) already exist
I need a code that validate a date entered from a DBEdit (with a mask
__/__/__), include the manipulation of the return key. I'm trying and only
getting errors and errors, argh !!!
I put a code in the application's onKeyDown, that detects the keydow, return
and keyup keys, for passing from one con
51 matches
Mail list logo