Arrays
Kenneth Brody
kenbrody at spamcop.net
Wed Jun 26 08:02:31 PDT 2013
On 6/25/2013 5:47 PM, Richard Kreiss wrote:
[...]
>>> I have a number of routines that post data from on file to another where
>> arrays are mapped to the sequential fields on the current file and an array is
>> mapped to the matching fields in the other file.
>>>
>>> Dim foobar(22):1;dim newfile(22):file(1) Lookup to newfile free
>>> ::Ct="1"
>>> Loop_po:ct lt "22":newfile[ct]=foobar[ct];ct=ct+"1";GOTO loop_po
[...]
>>> The above has worked well for a couple of years. Recently it has not been
>> working properly. By that I mean, some fields values are posted and other
>> not. Phone numbers and date fields are not being posted.
[...]
>> Can you give some specific examples of actual data in the current file (along
>> with the field definitions) that ended up being blank in the posting file (along
>> with the field definitions).
>>
>>> I modified the posting file to not use the arrays.
>> [...]
>>
>> Are you saying that replacing the arrays with explicit assignments made it
>> work?
>
> These are the primary fields. These are many more fields which are posted not using the array. Then there is another set of arrays for posting 15 more fields.
Fair enough, regarding the "copy newfile" option. What about my other
questions?
To repeat:
>>> Can you give some specific examples of actual data in the current file (along
>>> with the field definitions) that ended up being blank in the posting file (along
>>> with the field definitions).
and
>>> Are you saying that replacing the arrays with explicit assignments made it
>>> work?
--
Kenneth Brody
More information about the Filepro-list
mailing list