Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Generic-swap/Visual-FoxPro/generic-swap.fvp
Normal file
15
Task/Generic-swap/Visual-FoxPro/generic-swap.fvp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
*!* Swap two variables
|
||||
LOCAL a, b
|
||||
a = 1
|
||||
b = "Hallo"
|
||||
? a, b
|
||||
*!* Pass a and b by reference
|
||||
Swap(@a, @b)
|
||||
? a, b
|
||||
|
||||
PROCEDURE Swap(v1, v2)
|
||||
LOCAL dum
|
||||
dum = v1
|
||||
v1 = v2
|
||||
v2 = dum
|
||||
ENDPROC
|
||||
Loading…
Add table
Add a link
Reference in a new issue