Announcement

Collapse
No announcement yet.

STRREVERSE$ function

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • STRREVERSE$ function

    I am using PB/DLL 6.0

    Tonight I tried using the STRREVERSE$ function for the first time and the following things occurred:

    1) When I typed "STRREVERSE" in the editing window the text turned blue, but when I added the $ character the text reverted to black.

    2) When I used "STRREVERSE$" and ran the compiler, the compiler treated STRREVERSE$ as a variable, not a function.

    3) When I used "STRREVERSE" the compiler notified me of a missing variable declaration. (I used #DIM ALL at the beginning of the file).

    Here is the code I used:

    dim msg as string
    dim tty as string
    msg=STRREVERSE$(PARSE$(tty,1))

    It's as if the compiler doesn't recognize this keyword at all. Any idea what's going on?

    ------------------


    [This message has been edited by Arne Shulstad (edited August 19, 2000).]

  • #2
    Hi Arne

    the correct declaration for STRREVERSE is STRREVERSE$ - the PB
    editor incorrectly highlighst STRREVERSE instead of STRREVERSE$.

    The following is correct and works for me:

    dim msg as string
    dim tty as string
    msg=STRREVERSE$(PARSE$(tty,1))

    Have another look at your code

    Cheers

    Florent


    ------------------

    Comment


    • #3
      Thanks Florent. The editor bug threw me.

      ------------------

      Comment

      Working...
      X