SvgVectorOutput() is not a function, array, list, map or macro

Just starting out? Need help? Post your questions and find answers here.
User avatar
Distorted Pixel
Enthusiast
Enthusiast
Posts: 233
Joined: Sun Aug 29, 2021 4:34 am

SvgVectorOutput() is not a function, array, list, map or macro

Post by Distorted Pixel »

Hi,

PB 6 beta 7 error says the following with this test code for vector image, SvgVectorOutput() command. SvgVectorOutput() is in the help files:

[22:17:06] [COMPILER] Line 28: SvgVectorOutput() is not a function, array, list, map or macro.

Code: Select all

UsePNGImageDecoder()
   If OpenWindow(0, 0, 0, 400, 200, "VectorDrawing", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    CanvasGadget(0, 100, 50, 150, 40)
    
    LoadImage(0, "buttontest.png")

    If StartVectorDrawing(CanvasVectorOutput(0))

      AddPathBox(0, 0, 150, 40)
      ;AddPathBox(150, 75, 200, 50)
      
      VectorSourceImage(ImageID(0), 255, ImageWidth(0), ImageHeight(0), #PB_VectorImage_Default)
      StrokePath(150)
      SvgVectorOutput("buttontest.svg", 150, 40)
      StopVectorDrawing()
            
    EndIf
    
    Repeat
      Event = WaitWindowEvent()
    Until Event = #PB_Event_CloseWindow
  EndIf
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)
To be popular is way to much work. I just want to be me, myself and I. Oh no, does that mean I'm bipolar? :shock:

No one cares how much you know until they know how much you care
User avatar
STARGÅTE
Addict
Addict
Posts: 2067
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: SvgVectorOutput() is not a function, array, list, map or macro

Post by STARGÅTE »

Distorted Pixel wrote: Wed May 25, 2022 3:27 am SvgVectorOutput() is in the help files:
Yes, but it is also written:
"Supported OS: Linux"

So, this function do not exist in windows.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
Distorted Pixel
Enthusiast
Enthusiast
Posts: 233
Joined: Sun Aug 29, 2021 4:34 am

Re: SvgVectorOutput() is not a function, array, list, map or macro

Post by Distorted Pixel »

Hmm, I thought I read the help file entry thoroughly lol. Thank you for pointing that out to me. I definitely missed it.
To be popular is way to much work. I just want to be me, myself and I. Oh no, does that mean I'm bipolar? :shock:

No one cares how much you know until they know how much you care
User avatar
NicTheQuick
Addict
Addict
Posts: 1224
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: SvgVectorOutput() is not a function, array, list, map or macro

Post by NicTheQuick »

Please make the subject of the thread more meaningful.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
Kiffi
Addict
Addict
Posts: 1353
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: SvgVectorOutput() is not a function, array, list, map or macro

Post by Kiffi »

NicTheQuick wrote: Wed May 25, 2022 11:56 amPlease make the subject of the thread more meaningful.
[X] Done :wink:
Hygge
User avatar
Distorted Pixel
Enthusiast
Enthusiast
Posts: 233
Joined: Sun Aug 29, 2021 4:34 am

Re: SvgVectorOutput() is not a function, array, list, map or macro

Post by Distorted Pixel »

NicTheQuick wrote: Wed May 25, 2022 11:56 am Please make the subject of the thread more meaningful.
Yea, sorry about that, I normally do. I usually put brief statement about the issue in title and didn't this time
To be popular is way to much work. I just want to be me, myself and I. Oh no, does that mean I'm bipolar? :shock:

No one cares how much you know until they know how much you care
Post Reply