readline() strangeness on 4.8.10D4

Nancy Palmquist nlp at vss3.com
Wed Dec 17 08:53:48 PST 2008


Kenneth Brody wrote:
> Quoting Roger Cornelius (Tue, 16 Dec 2008 17:30:43 -0500):
>
>   
>> Filepro 4.8.10D4 on SCO OSR507
>>
>> I'm seeing strange behaviour from readline(), which I haven't had a need
>> to use before now.  Or maybe it's len() or call processing or the
>> debugger that's the problem.
>>
>> - I'm using a called table via "call noauto"
>> - In auto processing I have field kz(12,*)
>> - In called table I have field kz(64,*)
>>     
> [...]
> ... readline() works, but len(kz) and the debugger show 12 characters ...
> [...]
>
> Sounds like an issue with len() and the debugger, as readline() is
> returning the proper 64 characters.
>
> [...]
>   
>> And also:
>>
>> - readline() doesn't like it when it's arguments are variables with long
>>   names.  At least I get a syntax error when I try to save the table.
>>   writeline() seems to work fine with long name variables.
>>
>> Since we're on an old fp version, can I assume these issues have already
>> been reported and fixed?  If so, in what version?
>>     
>
> As noted in the 4.8.12 readme:
>
> All
>      READ()/READLINE() now accept long-named variables as the second
>      parameter.
>
>   
I never developed in 4.8 for the items where I had problems with the 
long variables.  My stuff was in 5.0 or 5.6 versions.
So I am not convinced it is fixed.

(Just because it is in the readme does not mean you fixed it.  )

Nancy
>> Am I going to have problems reusing vars which exist in auto processing
>> even though I'm using "call noauto"?
>>     
>
> Define "problems".
>
> By using CALL NOAUTO, you are telling filePro that the CALLed table is
> to not share the dummy fields which may be defined in auto processing.
> In this case, the CALLed table's "kz" field is local to that table, and
> not the one already defined in auto, which would have happened with a
> "normal" CALL.  The same holds true for all other dummy fields.
>
>   
Well that is a feature I guess I hadn't noticed.  But from his posting, 
it looks like it did pick up  the length
from AUTO processing.

Nancy


-- 
Nancy Palmquist 		MOS & filePro Training Available
Virtual Software Systems	Web Based Training and Consulting	
PHONE: (412) 835-9417		   Web site:  http://www.vss3.com



More information about the Filepro-list mailing list