Search found 884 matches

by Peter
Tue Feb 13, 2024 11:53 am
Forum: Coding Questions
Topic: Is RadixTree possible here
Replies: 5
Views: 274

Re: Is RadixTree possible here

AZJIO wrote: Tue Feb 13, 2024 11:08 amand it didn't work.
Error message?
by Peter
Sat Feb 10, 2024 10:32 pm
Forum: Feature Requests and Wishlists
Topic: database field names
Replies: 2
Views: 558

Re: database field names

nad wrote: Sat Feb 10, 2024 7:40 pmthe ability to access database fields by field name.
I have already answered that: viewtopic.php?p=9702#p9702
by Peter
Sat Feb 10, 2024 1:55 pm
Forum: Coding Questions
Topic: relative field names from db
Replies: 2
Views: 184

Re: relative field names from db

You can use DatabaseColumnIndex():

Code: Select all

ReturnValue.s = GetDatabaseString(YourDatabase, DatabaseColumnIndex(YourDatabase, "YourTableField"))
by Peter
Tue Feb 06, 2024 11:39 am
Forum: Coding Questions
Topic: How to store and use a callback function (kind of delegate)
Replies: 3
Views: 320

Re: How to store and use a callback function (kind of delegate)

Perhaps as in the following example: Procedure CallFunction(Function, Param1, Param2) Protected ReturnValue ! if (typeof v_function === "function") { ! v_returnvalue = v_function(v_param1, v_param2); ! } ProcedureReturn ReturnValue EndProcedure Structure TCalc *addFunction EndStructure Pro...
by Peter
Mon Feb 05, 2024 2:07 pm
Forum: Coding Questions
Topic: Link to #PB_LocalStorage (?)
Replies: 1
Views: 299

Re: Link to #PB_LocalStorage (?)

If you create a file with the #PB_LocalStorage flag, it is not physically created, but stored in a memory area of the browser. You can view this in the developer console: https://i.imgur.com/c3tRNrK.png (The library used for this in SpiderBasic is called localForage. For this reason, you will find i...
by Peter
Sat Feb 03, 2024 12:25 am
Forum: Bugs Reports
Topic: Unable to use LoadXML() with OpenXMLDialog()
Replies: 2
Views: 846

Re: Unable to use LoadXML() with OpenXMLDialog()

LoadXML() [...] Return value Nonzero if the xml object has been created. The xml data is still not loaded, the callbacks binded to #PB_Event_Loading and #PB_Event_LoadingError will be called once the loading is done. If #PB_Any was used for the #XML parameter then the generated number is returned o...
by Peter
Fri Feb 02, 2024 3:44 pm
Forum: Javascript
Topic: List of class names for css modification in window.css
Replies: 3
Views: 1265

Re: List of class names for css modification in window.css

Here are the gadget css files:

[YourSpiderBasicPath]\Libraries\javascript\dojo\themes\claro\claro.css

or

[YourSpiderBasicPath]\Libraries\javascript\dojo\themes\flat\flat.css
by Peter
Fri Feb 02, 2024 3:29 pm
Forum: Coding Questions
Topic: StringGadget() change font
Replies: 2
Views: 498

Re: StringGadget() change font

Works as expected: https://i.imgur.com/BLrOy9H.png Global FONT_MONOSPACE_16 = LoadFont(#PB_Any, "Courier", 16) If OpenWindow(0, 0, 0, 322, 80, "StringGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) NomalGadget = StringGadget(#PB_Any, 8, 10, 306, 20, "Normal Stri...
by Peter
Fri Feb 02, 2024 10:34 am
Forum: Coding Questions
Topic: Problem porting PB to SB (DataSection, Label and Procedure)
Replies: 2
Views: 603

Re: Problem porting PB to SB (DataSection, Label and Procedure)

If you look at your code in the console of your browser, you will see the following:

Image


You call this function:

Code: Select all

v_rec1._vt._Draw(v_rec1);

but the function is called:

Code: Select all

rect$f_draw(p_this)
by Peter
Sat Jan 27, 2024 3:49 pm
Forum: Coding Questions
Topic: Translating Purebasic in Spiderbasic problem
Replies: 6
Views: 811

Re: Translating Purebasic in Spiderbasic problem

jphoarau wrote: Sat Jan 27, 2024 3:28 pmThere is the keyword Restore but I don't know how to use it.
place the cursor in the keyword and press <F1>. Help for the corresponding command will then appear

Online-Help for DataSection and Restore: https://www.spiderbasic.com/documentati ... /data.html