Search found 3 matches

by KRY_M
Thu Aug 15, 2019 10:08 pm
Forum: Converting to LiveCode
Topic: Convert old Basic dual FOR's to LC
Replies: 7
Views: 716

Re: Convert old Basic dual FOR's to LC

Thank you for support, I modified the code and now it works (i forgot to test it outside of the working folder) The rules of the game are simple each player moves one piece at a time, the user can move up one or two squares an the PC moves horizontally only one or two squares. The user who can't mov...
by KRY_M
Tue Aug 13, 2019 10:57 pm
Forum: Converting to LiveCode
Topic: Convert old Basic dual FOR's to LC
Replies: 7
Views: 716

Re: Convert old Basic dual FOR's to LC

Thank you, it did the trick ! my code now looks like a spagetti code but it is too complex to modify its structure... repeat with i = 1 to 6 repeat with j = 1 to 5 if a[i][j]=0 or a[i][j+1]= 1 then //or ! nu and next repeat //next j end if repeat with k=j+1 to 6 put false into sw //adaugire if a[i][...
by KRY_M
Mon Aug 12, 2019 9:57 pm
Forum: Converting to LiveCode
Topic: Convert old Basic dual FOR's to LC
Replies: 7
Views: 716

Convert old Basic dual FOR's to LC

I have a problem trying to migrate an old app build by me long time ago. I can't find any example of exiting 2 FOR loops (one for x and one for y) when i found my value inside of an Array ex: For i = 1 To 6 For j = 1 To 5 If a(i, j) = 1 And a(i, j + 1) = 0 Then om_c = 1 Beep Call mut_calc GoTo 102 /...

Go to advanced search