Browse lookup problem

Kenneth Brody kenbrody at spamcop.net
Fri Jun 3 12:01:48 PDT 2011


On 6/3/2011 12:53 PM, Richard Kreiss wrote:
[...]
>>> This works on my system but fails on their system.

What's different in the file you have versus the one they have?

>>> I changed ba,bb,&   bc to h,I,j and the browse worked as it should.
>>>
>>> Ba,bb, and bc are on used in input processing.  They are not defined in auto
>> processing and the is no @entsel processing.
>>>
>>> Can anyone see why this should suddenly fail?
>>>
>>> The box that came up was square, had the three  .00's and no header or
>>> XXXX
>>
>> Pure guess:
>>
>> Fields ba, bb, and bc were defined with something not compatible with your
>> usage, causing them to not contain what you thought they should.
>>
>> What if, just before the lookup statement, you put:
>>
>>       mesgbox "ba='"&  ba&  "'\nbb='"&  bb&  "'\nbc='"&  bc&  "'"
>>
> Tested this with debug and checked the values of ba, bb&  bc.  They we as they should be.

But you didn't actually try the message box.

> Once I saw that they held the correct values, I recreated the browse and then split it apart using h,I,j and then commented out the original code and test it.  The new code worked.

What do you mean by "split it apart"?

> I then replaced the ba, bb, and bc with  h, I, and J and adjusted the browse command.  This worked fine.

So, you say that this fails:

     ba="(brw=10 xkey=xdeu show=pkeep prc=nocard fill=desc,top)"
     bb="[\b5 Master Code    Tp Last Four    Expires \a-]"
     bc="*3<16    *5  XXXX*18      *6"
     lookup card = l_card  k=4    i=B -nxm b=(ba&bb&bc)

But this works:

     h="(brw=10 xkey=xdeu show=pkeep prc=nocard fill=desc,top)"
     i="[\b5 Master Code    Tp Last Four    Expires \a-]"
     j="*3<16    *5  XXXX*18      *6"
     lookup card = l_card  k=4    i=B -nxm b=(h&i&j)

With nothing else in the processing being changed?

In that case, something is different between the definitions of ba/bb/bc and 
h/i/j.

However, you say that you "split it apart" when you changed it to h/i/j. 
Can you show the actual code that "works"?

-- 
Kenneth Brody


More information about the Filepro-list mailing list