Do you have a guide for someone new into spiderbasic. I know purebasic a little bit but i need to understand the difference between purebasic and spider. I have a 3500 lines of code for an little software in purebasic and i want to translate it into spiderbasic (android). I already have others products to built android and IOS software but it will be a lot easier with the same ide.
Yves
difference between purebasic and spiderbasic
-
- Posts: 2
- Joined: Tue Dec 20, 2016 12:01 am
Re: difference between purebasic and spiderbasic
I got a private list of what is different, it wasn't meant to be public so it can be inaccurate, but may be it can help you:
Code: Select all
Differences against PureBasic:
- Bitwise operands like '<<', '>>', '^', '!' only works on 32-bit numbers
- Quads are not real 64-bit quads but 53-bit only.
- Float are handled like double (32-bit float doesn't exists)
- Integer type other than 'quad' and 'integer' are subject to slow casting to respect their range
- '?' operator to get the labels address is not supported
- 'Break' doesn't support a level parameter
- No 'Goto'
- No 'Gosub'
- No 'End'
- Removed ProcedureC/ProcedureDLL, ImportC
- ReDim doesn't support multiarray
Gadget:
- ScrollBar() not implemented
- MDIGadget() not implemented
- ExplorerGadgets() not implemented
- IPAddressGadget() not implemented
- ShortCutGadget() not implemented
- Get/SetGadgetItemColor() not implemented
- ProgressBar(): no vertical settings
- CalendarGadget(): colors not supported
- ComboBox has fixed height (font based)
- ButtonImageGadget(): no pressed image
- SpinGadget(): no Get/SetGadgetText(), numeric only
- TextGadget(): no border
- TrackBarGadget(): #PB_TrackBar_Ticks
- CheckBoxGadget(): #PB_CheckBox_InBetween not supported
- EditorGadget(): No item management
2DDrawing:
- Only outlined and standard mode supported for now
- Gradient functions not implemented
- Custom filter not implemented
- DrawingBuffer() not implemented
- DrawText() not implemented
- DrawRotatedText() not implemented
- AlphaBlend() not implemented
- DrawingFont() not implemented
- DrawAlphaImage() not implemented
- FillArea() not implemented
- GrabDrawingImage() not implemented
- TextHeight() not implemented
- TextWidth() not implemented
Date:
- ParseDate() not implemented
Image:
- CatchImage() not implemented
- EncodeImage() not implemented
Math:
- RandomData() not implemented
Requester:
- OpenFileRequester() signature has changed
Screen:
- ScreenOutput not implemented
Sort:
- SortStructuredList() and SortStructuredArray() are not implemented
String:
- StringByteLength() not implemented
ToolBar:
- ToolBarStandardButton() not implemented
Window:
- No window maximize/minimize buttons
- WindowOutput() not implemented
- Get/SetWindowState() not implemented
- Get/SetWindowColor() not implemented
- WindowEvent()/WaitWindowEvent() not supported (use BindEvent() instead)
XML:
- CatchXML() is not available
- CreateXMLNode() syntax is different
- SetXMLNodeName() is not available
- LoadXML(): new flags (PB_LocalFile)
JSON:
- CatchJSON() not available
- ExportJSON() not available
- ExportJSONSize() not available
- SaveJSON()
Re: difference between purebasic and spiderbasic
Would be nice if gradients could be implemented at some point!
-
- Posts: 2
- Joined: Tue Dec 20, 2016 12:01 am
Re: difference between purebasic and spiderbasic
Many thanks !
Yves
Yves
-
- Posts: 74
- Joined: Thu May 26, 2016 11:09 am
Re: difference between purebasic and spiderbasic
The loads are asynchronous
You must use "BindEvent (#PB_Event_Loading, @EventLoading ())"
Endless loops are prohibited
For gadget management, use "BindGadgetEvent"
You must use "BindEvent (#PB_Event_Loading, @EventLoading ())"
Endless loops are prohibited
For gadget management, use "BindGadgetEvent"