Variable Assignments
Jose Lerebours
fpgroups at gmail.com
Sun Aug 21 08:11:35 PDT 2016
On 08/21/2016 10:51 AM, Kenneth Brody via Filepro-list wrote:
> On 8/21/2016 1:23 AM, Stanley - stanlyn.com via Filepro-list wrote:
> [...]
>> Aa="9"+"1"
>>
>> Fn=aa ' returns the number 10 instead of the value of field 10
>>
>> I've tried fn=(aa) and fn=((aa)) and both returns 10
>
> That's because aa equals 10, so naturally storing the value of field
> aa anywhere will get you 10.
>
> This is where FIELDVAL() comes in:
>
> fn = fieldval(-,aa)
>
ah, there is an answer ... lol
Ken, is the use of an array versus the method fieldval() any different
in turns of speed or memory resources?
My guess is that the array uses up memory where the method does not, at
least not constant.
More information about the Filepro-list
mailing list