Announcement

Collapse
No announcement yet.

Missing BUILD$() functionality (SYNTAX ERROR)

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

  • Missing BUILD$() functionality (SYNTAX ERROR)

    Hi,

    I tried the new function BUILD$() in a few commands and received a syntax error:

    $string_test = BUILD$("abc",DEF")

    and

    x$ = REMOVE$(BUILD$("abc","DEF"), ANY BUILD$("a",D"))

    in both commands the "+" works nicely.


    BRGS

    Andreas

  • #2
    First you cannot use a statement or function to create a string equate and secondly you are missing the begining quote for DEF.
    Use
    Code:
    string_test$ = BUILD$("abc","DEF")
    or
    string_test = BUILD$("abc","DEF")
    Sincerely,

    Steve Rossell
    PowerBASIC Staff

    Comment


    • #3
      >First you cannot use a statement or function to create a string equate

      Really?

      Straight from the help file...
      Code:
      $Name      = "John Smith"
      $Fullname  = "John" & " Smith"
      $UserName  = $First & $Last
      $PrintCode = CHR$(27, 34, "E") + SPACE$(10) + CHR$(65 TO 90)
      $AppGuid   = GUID$("{01234567-89AB-CDEF-FEDC-BA9876543210}")
      Maybe you meant you can't use the BUILD$() function...
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment

      Working...
      X