Home > database >  FoxPro how simple traversal?
FoxPro how simple traversal?

Time:10-15

Hope to solve the problem is: end 10 * 10, all sorts of permutation and combination, according to a variety of permutation and combination, forming parameters, to execute the subroutine

Now, to paraphrase the two loops
The minor cycle array xishu 1-10 of (1) loop again,
The systemic circulation of array xishu (2) - (10) collective circulation again

Now need to xishu (2) from 2 to 10 cycle again
The xishu (3) from 3 to 10 cycle again
The xishu (4) from 4 to 10 cycle again
.
.

How to add the cycle


Or have a more simple way to achieve this goal: 10 variables, each variable 1-10 of possibility, end all combination, thank you

Thank you

FOR min_a=min TO Max STEP + 0.1
PUBLIC xishu (10)
STORE min_a TO xishu

FOR min_b=min_a TO Max STEP + 0.1

STORE min_b TO maimaixishu (1)
The replace FOR interval=0.95 coefficient WITH xishu (1)
The replace FOR interval=0.90 coefficient WITH xishu (2)
The replace FOR interval=0.80 coefficient WITH xishu (3)
The replace FOR interval=0.70 coefficient WITH xishu (4)
The replace FOR interval=0.60 coefficient WITH xishu (5)
The replace FOR interval=0.40 coefficient WITH xishu (6)
The replace FOR interval=0.30 coefficient WITH xishu (7)
The replace FOR interval=0.20 coefficient WITH xishu (8)
The replace FOR interval=0.10 coefficient WITH xishu (9)
The replace FOR interval=0.05 coefficient WITH xishu (10)

DO jisuan
ENDFOR

ENDFOR
  •  Tags:  
  • VFP
  • Related