[VSRV][V4RB] seeking update
Tim Davis
timdavis at amug.org
Fri Sep 12 01:13:28 CDT 2003
>>>>> Have the following been fixed yet? Neither will return a real
>>>>> value.
>>>>> server.ConnectionCount
>>>>> cursor.field(i).Value
>>> shouldn't the above be cursor."fieldtype"field(i).value
>>> ie. cursor.doublefieldfield(i).value
>> oops
>> cursor.doublefield(i).value
> YES!
> I also was going to ask this.
> Tim, cursor.field(i).Value is not correct syntax.
> So what you mean ?
Sorry, I meant GetString, (not Value).
> You have report them before?
I think I mentioned that server.ConnectionCount returns zero before,
but I can't find it. (Also on Jul 14th, I mentioned that it would cause
a crash, but that was fixed.)
Here are our past conversations about GetString:
On Jul 3rd:
>> Have there been changes to the GetString of a cursor in recent
>> months?
>>
>> I used to be able to do this:
>> c.Field("Max(ID)").GetString
>>
>> Now it returns zero everytime.
>>
>> Even this doesn't work (gives value of zero):
>> c.UMediumField("Max(ID)").GetString
>>
>> It seems the only way is to do this:
>> c.UMediumField("Max(ID)").Value
>>
>> Both GetString, and referring to a field generically and returning a
>> string, is very handy. Is there a reason for this change?
>
> This must works!
> Send me project that reproduce this please.
On Jul 5th:
> FIXED bug in client.
> Now Medium field correctly return GetString().
On Aug 18th:
>> A while back I mentioned that GetString (in V4RB) gives really
>> unusual results or none, and you responded that it was very important
>> to fix. Just an FYI, it still does not work. Example:
>> cursor.field(whatever).getstring . The work around is to specify the
>> field type and request the value, ie.
>> cursor.umediumfield(whatever).value .
>
> Okay, we will check ASAP
The project file I sent you produced (and still produces) these
results. I'll resend the test project to you off list for testing.
Examples obtaining Max(ID):
0 is result using 'c.Field(1).GetString'
0 is result using 'c.UMediumField(1).GetString'
3 is result using 'c.UMediumField(1).Value'
0 is result using 'c.Field(''Max(ID)'').GetString'
0 is result using 'c.UMediumField(''Max(ID)'').GetString'
3 is result using 'c.UMediumField(''Max(ID)'').Value'
Thanks,
Tim Davis
More information about the Valentina
mailing list