Page 2 of 2

Re: SpiderBasic 3.30 beta 1 is out !

Posted: Wed May 27, 2026 7:43 am
by Fred
It's a regression, will be fixed in beta 2. Thanks !

Re: SpiderBasic 3.30 beta 1 is out !

Posted: Wed May 27, 2026 7:44 am
by hoerbie
Thanks, now the Beta 1 is downloadable. Will have a look in the next days.

Re: SpiderBasic 3.30 beta 2 is out !

Posted: Wed May 27, 2026 10:22 am
by Fred
- 2026-05-27: beta 2 is out, with some bug fixes, and a new DateUTC() function.

Re: SpiderBasic 3.30 beta 2 is out !

Posted: Wed May 27, 2026 1:23 pm
by bembulak
Fred wrote: Wed May 27, 2026 10:22 am - 2026-05-27: beta 2 is out, with some bug fixes, and a new DateUTC() function.
Great news, thank you!

Re: SpiderBasic 3.30 beta 2 is out !

Posted: Wed May 27, 2026 5:09 pm
by Danilo
Fred wrote: Wed May 27, 2026 7:43 am It's a regression, will be fixed in beta 2. Thanks !
Thank you very much for beta2 - that was fast! πŸ™πŸ»πŸ‘

Here the 2 examples for OpenFileRequester from the help file, modified for SB 3.30:

Code: Select all

Procedure ButtonEvent()
  Filename$ = OpenFileRequester("", #PB_Requester_MultiSelection)
  	
  ; Process all the selected filename
  ;
  While Filename$
    Debug "Filename: " + Filename$
    Filename$ = NextSelectedFilename()
  Wend
EndProcedure
    
OpenWindow(0, 100, 100, 200, 55, "File")
ButtonGadget(0, 10, 10, 170, 25, "Open local file...")
BindGadgetEvent(0, @ButtonEvent())

Code: Select all

Procedure ButtonEvent()
  Filename$ = OpenFileRequester("")
  If Filename$
    Image = LoadImage(#PB_Any, Filename$, #PB_LocalFile)
    If Image
      ; Display the image in a new window
      OpenWindow(#PB_Any, 10, 10, 300, 300, "Image", #PB_Window_SizeGadget)
      ImageGadget(#PB_Any, 0, 0, ImageWidth(Image), ImageHeight(Image), ImageID(Image))
    EndIf
  EndIf
EndProcedure

OpenWindow(0, 100, 100, 200, 55, "File")
ButtonGadget(0, 10, 10, 170, 25, "Open local file...")
BindGadgetEvent(0, @ButtonEvent())
SB 3.30 beta is incompatible to SB 3.20. Maybe itβ€˜s better to go to version number SB 4.0?
For example, old:

Code: Select all

OpenFileRequester(Pattern$, Callback)
runs now as

Code: Select all

OpenFileRequester(Pattern$, #PB_Requester_MultiSelection)
Many codes need to be changed, so a new version number would be reasonable/justified. Itβ€˜s a big change.