Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I dare you...
#11
Quote:Here is some more stuff I have done without S.I.C.K.


Hehe, Touche..

Attached is the fourth structure,

Erik.


Attached Files
.txt   struc.txt (Size: 7.96 KB / Downloads: 32)
Reply
#12
mnrvovrfc

may i ask you what kind of code editor is that?
Reply
#13
And for the sake of completeness, this is perfectly valid:
Code: (Select All)
For x = 1 To 10 Step 2
    For y = 1 To 10
        Select Case y
            Case Is <> x
                Print y;
        End Select
    Next
    Print
Next
Reply
#14
(03-16-2023, 12:41 AM)eoredson Wrote: This can be done in S.I.C.K. but I dare the authors of Qb64pe to do this:

Displays 5 rows of 10 skipping every x

Code: (Select All)
10  for x=1 to 10 step 2
20      for y=1 to 10
30        select case y
40        case isnt=x
50            print y;
60        end select
70      next
80      print
90  next

CASE IS <> x
Reply
#15
(03-16-2023, 03:32 AM)SMcNeill Wrote: Here is some more stuff I have done without S.I.C.K.

What if there's more code to execute which is not shown?

(Allowing someone to put the rabbit ears behind my head while I'm not noticing.)
Reply
#16
(03-16-2023, 08:04 AM)aurel Wrote: mnrvovrfc

may i ask you what kind of code editor is that?

It's Kate (KDE Advanced Text Editor), in EndeavourOS (Arch Linux descendant).

I checked out Q4OS like you recommended me but with KDE Plasma (the slightly older one than EndeavourOS). I looked at the system with Trinity but I'm no longer accustomed to Windows98/WindowsXP way of working LOL. I prefer Dolphin instead of Konqueror as file manager, and a different web browser (have to use Firefox). Nice desktop though. I had to find the way to reduce the screen brightness of my laptop from maximum.
Reply
#17
aha...it is Kate Smile 
 
i know that i saw it somewhere ,
ahh Arch...grrr i have problems with Arch based distros..never work for me
all of them are kind of heavy on resources

yes Q4OS ...hmmm i am not very much happy about it ..it is kind of slow
i still have it installed on  my linux partition

but i am in doubt what to reinstall

between ChaletOS and XentaOS ..what you think?

just little thing ..ChaletOS have preinstalled Wine but Xenta is little bit quicker.
Reply
#18
(03-16-2023, 02:09 PM)mnrvovrfc Wrote:
(03-16-2023, 03:32 AM)SMcNeill Wrote: Here is some more stuff I have done without S.I.C.K.

What if there's more code to execute which is not shown?

(Allowing someone to put the rabbit ears behind my head while I'm not noticing.)

In that case, simply do:

Code: (Select All)
foo

Sub foo
    Do 
        For A = 1 To 10
            For B = 1 To 10
                If Len(InKey$) Then Exit Sub
                Print A; B;
            Next
            Print
        Next
    Loop
End Sub
Reply
#19
(03-16-2023, 03:23 PM)SMcNeill Wrote: In that case, simply do:

In SICK64 must instead jump to the code after the last line which is shown in the example, because that interpreter doesn't recognize subprograms.



eoredson you'll have to edit your documentation a bit, the code example has "NEXT" where there should be a "NEXTIF" to match the "FORIF", I think because I haven't tried it, I have to go back to Windows to test 32-bit stuff, don't like doing it with Linux/Wine.

Code: (Select All)
            10 FORIF M=-1,L=1 TO 10
            20    PRINT L;
            30 NEXTIF

This could be replicated in QB64(PE) (according to "FORIF" instructions in attached text file):

Code: (Select All)
5 IF M = -1 THEN
            10 FOR L=1 TO 10
            20    PRINT L;
            30 NEXT
35 END IF

EDIT: Noticed also the "SELECTIF". These weird constructs are to combine "IF" with "FOR" or some other scope construct. But it could be confusing to somebody deeply ingrained into Microsoft BASIC. The "FORIF" in particular resembles the "for(initialize; condition; update)" in C. Might as well re-create "FOR... NEXT" along those lines.
Reply
#20
Quote:because that interpreter doesn't recognize subprograms


hmmm ..is this a joke Confused 

I only see strange construction like EXIT FOR 2
looks like interpreter don't track NEXT iterator from FOR/NEXT stack
because he author don't have iterator after NEXT ...
Reply




Users browsing this thread: 23 Guest(s)