Search found 203 matches
- Fri Jul 05, 2013 3:16 am
- Forum: Coding Questions
- Topic: Black hole - how to speed up?
- Replies: 9
- Views: 2224
Re: Black hole - how to speed up?
Nice looking black hole effect. :) If you keep expanding this idea, how about taking advantage of threads? Let Main handle the display. Meanwhile Thread1 can calculate orbital position vectors for stars in a cluster. At the same time, Thread2 could add an inward spiral componet for each star toward ...
- Wed Jul 03, 2013 10:58 pm
- Forum: Feature Requests and Wishlists
- Topic: ExtractRegularExpression + Structured Arrays
- Replies: 1
- Views: 666
Re: ExtractRegularExpression + Structured Arrays
Is 5.11 code like this is no longer allowed in 5.12? If so, then +1. A safe alternative might be to limit results to space available within structures. Structure MyStruct Array MyArray.s(100) EndStructure Define MS.MyStruct subject.s = " addonaddedaddition add readd added addadd " pattern....
- Sun Jun 30, 2013 10:14 am
- Forum: Coding Questions
- Topic: _ReturnAddress() in Pure Basic
- Replies: 10
- Views: 1307
Re: _ReturnAddress() in Pure Basic
@ idle
Thanks. That looks like a good way to insert a bit of procedure exit code.
Thanks. That looks like a good way to insert a bit of procedure exit code.
- Sat Jun 29, 2013 12:03 pm
- Forum: Coding Questions
- Topic: _ReturnAddress() in Pure Basic
- Replies: 10
- Views: 1307
Re: _ReturnAddress() in Pure Basic
@Thorium
True, the macro only works if he is compiling all of the code. Then the unique labels can double as CallerID.
True, the macro only works if he is compiling all of the code. Then the unique labels can double as CallerID.
- Sat Jun 29, 2013 9:53 am
- Forum: Coding Questions
- Topic: _ReturnAddress() in Pure Basic
- Replies: 10
- Views: 1307
Re: _ReturnAddress() in Pure Basic
Instead of an Inline Function, how about a Macro? Macro MyTest Debug MacroExpandedCount x = ?MyLabel#MacroExpandedCount MyLabel#MacroExpandedCount: EndMacro MyTest Debug x ; address beyond last macro instruction for 1st use MyTest Debug x ; address beyond last macro instruction for 2nd use MyTest De...
- Fri Jun 28, 2013 9:56 am
- Forum: Coding Questions
- Topic: Test that a string value has an integer format ?
- Replies: 25
- Views: 4673
Re: Test that a string value has an integer format ???
The Devil is in the details. Watch out for leading zeros with "If Str(Val(in_string.s)) = in_string.s"
- Fri Jun 14, 2013 1:42 am
- Forum: Coding Questions
- Topic: Pointer and PB 5.11
- Replies: 6
- Views: 1216
Re: Pointer and PB 5.11
Here is another POKE-like option.
Code: Select all
Procedure test_1(*test1)
strTest.s = "Hello"
CopyMemory(@strTest, *Test1, StringByteLength(strTest)) ;
EndProcedure
Procedure Test_2()
Protected myText.s
myText = Space(1024)
test_1(@myText)
Debug myText
EndProcedure
Test_2()
- Mon Jun 10, 2013 2:14 am
- Forum: General Discussion
- Topic: Check Boxes missing from "Edit Tool Settings"
- Replies: 6
- Views: 1960
Re: Check Boxes missing from "Edit Tool Settings"
@Neil
Which version of PB and Reference Manual are you using? The issue may no longer exist in 5.11.
Which version of PB and Reference Manual are you using? The issue may no longer exist in 5.11.
- Mon Jun 03, 2013 9:28 pm
- Forum: Announcement
- Topic: Game Clock DLL
- Replies: 7
- Views: 4398
Re: Game Clock DLL
It works great with Win7/64 5.11 (PB x86 only).
- Fri May 31, 2013 2:47 am
- Forum: General Discussion
- Topic: Storing PureBasic internal dates in SQL
- Replies: 8
- Views: 2940
Re: Storing PureBasic internal dates in SQL
It may not be exactly what you had in mind but I use the PB DATE() frequently with a PB structure just like time.SYSTEMTIME. The additional parts list makes it work directly with lots of things. Structure PBSystemTime wYear.w : wMonth.w; wDayOfWeek.w : mDay.w; mDay is Day of Month wHour.w : wMinute....
- Thu May 30, 2013 11:14 pm
- Forum: Coding Questions
- Topic: Please help diagnose my procedure
- Replies: 5
- Views: 1062
Re: Please help diagnose my procedure
@wmorton 1) File 0,1 are opened with the same filename. 2) Case #yes,#no both write to file 0. Debug changes? 3) Windows events are frequent and asynchronous so there is no waiting for your buttons. To avoid problems and process all events, you should have a separate event loop without long delays. ...
- Wed May 22, 2013 9:58 pm
- Forum: Coding Questions
- Topic: Fill Form in Webgadget Mozilla?
- Replies: 7
- Views: 3032
Re: Fill Form in Webgadget Mozilla?
@ricardo
After what Fred says about dropping Firefox support, you should probably use Firefox in its own window anyway and just work with form fields from a separate PB EditorGadget.
iMacros can both read and write CSV files so that would make an easy data interface with a PB App. Good luck.
After what Fred says about dropping Firefox support, you should probably use Firefox in its own window anyway and just work with form fields from a separate PB EditorGadget.
iMacros can both read and write CSV files so that would make an easy data interface with a PB App. Good luck.
- Mon May 20, 2013 7:34 am
- Forum: Coding Questions
- Topic: Fill Form in Webgadget Mozilla?
- Replies: 7
- Views: 3032
Re: Fill Form in Webgadget Mozilla?
Well if you are talking about filling a known form, you could display display/edit fields in your gadget and then send the info through Firefox in the form of a macro. 1) Install the iMacro tool in Firefox and MacroRecord while filling out a form 2) Edit selected fields with your Gadget 3) Run Firef...
- Sun May 19, 2013 4:11 am
- Forum: General Discussion
- Topic: Good article on Salted Password Hashing
- Replies: 3
- Views: 780
Re: Good article on Salted Password Hashing
Interesting article. Thanks. I have always wondered why wrong password entry was so often followed by a simple "Try Again".
Failure should be the trigger to introduce slow methods such as a CAPTCHA code before the next guess.
Failure should be the trigger to introduce slow methods such as a CAPTCHA code before the next guess.
- Fri May 17, 2013 8:11 am
- Forum: Feature Requests and Wishlists
- Topic: Requst expanded CONSOLE functionality
- Replies: 5
- Views: 1571
Re: Requst expanded CONSOLE functionality
@jmcbride Aside from ANSI terminal type graphics, I can not tell what you want PB to do that it does not already do. For example, "be able to place the cursor anywhere on the screen with simple PRINT@ or LOCATE@ statements" is as easy as ConsoleLocate(StartChar , LineNum) : Print(" So...