realbasic-nug
[Top] [All Lists]

RE: Rs.field() vs rs.idxfield()

To: "'REALbasic NUG'" <realbasic-nug at lists dot realsoftware dot com>
Subject: RE: Rs.field() vs rs.idxfield()
From: "Steve Smith" <km5gn at mac dot com>
Date: Thu, 2 Dec 2004 13:52:28 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AcTYjeBmNBXuitILQQC/XROctHgnbQAEHiYQ
Perhaps what I was seeing wasn't the difference between rs.idxfield and
rs.field, but another problem

After loading a recordset, if I reference the value of a field that contains
a string, it seems to delete the
Field's value. I put in the loop below to see why a field that I knew
contained data didn't seem to, and it's does
The first time through the loop and doesn't the second time through the
loop.

What's up with this?

Steve



for lp = 1 to grsd.fieldCount
    t = ":" + grsd.idxfield(lp).value+":"
    system.debugLog t
  next
  for lp = 1 to grsd.fieldCount
    t = ":" + grsd.idxfield(lp).value+":"
    system.debugLog t
  next
  
[1172] In Constructor
[1172] newReceipt 
[1172] First time through
[1172] :6:
[1172] :19:
[1172] :C:\MX\MXSHEL~1bin\TASKPAD\images\MX300.gif
:
[1172] :True:
[1172] :True:
[1172] :True:
[1172] :False:
[1172] ::
[1172] ::
[1172] ::
[1172] :True:
[1172] :0:
[1172] :0:
[1172] :0:
[1172] :0:
[1172] Second time through
[1172] :6:
[1172] :19:
[1172] ::
[1172] :True:
[1172] :True:
[1172] :True:
[1172] :False:
[1172] :False:
[1172] :False:
[1172] :False:
[1172] :True:
[1172] :0:
[1172] :0:
[1172] :0:
[1172] :0:

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>