Search found 18 matches

by s0ula55a551n
Mon Mar 30, 2020 10:12 pm
Forum: Mac OSX
Topic: PB Takes over system, can't change screens ?
Replies: 3
Views: 2211

PB Takes over system, can't change screens ?

Hi,

Trying out the sprite.pb example. Cant switch back to pb to look at the debugger screens. No key combos work. Trackpad shortcuts don't work.

What am I doing wrong ?

Also the debugger is ignoring line breaks and running the full program.

Opening in a window and then creating a screen seems to ...
by s0ula55a551n
Fri Feb 19, 2016 11:58 am
Forum: Coding Questions
Topic: Issue with sprites
Replies: 2
Views: 774

Re: Issue with sprites

infratec wrote:Hi,

in general: to less input.

As hint: Have you defined the list as .i ?

Bernd

Will double check this, put probably
by s0ula55a551n
Mon Feb 15, 2016 1:27 pm
Forum: Coding Questions
Topic: im not sure how to structure this! Array of arrays or Lists
Replies: 10
Views: 1743

Re: im not sure how to structure this! Array of arrays

Looking into this I cannot think of good way of doing this with purebasic. I would say sorted list but as there is no binary search or other serach functionality in purebasic can only search using for next then not sure how fast it would be searching through a list

have you tried adding several ...
by s0ula55a551n
Sun Feb 14, 2016 12:22 am
Forum: Feature Requests and Wishlists
Topic: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Eclipse)
Replies: 11
Views: 6523

Re: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Ecli

Would like the auto complete to show you the Params for that function or procedure like eclipse does more
by s0ula55a551n
Thu Feb 11, 2016 4:43 pm
Forum: Coding Questions
Topic: Issue with sprites
Replies: 2
Views: 774

Issue with sprites

Hi,

Going to ask this as a question before logging a bug.

below is a code snippet. It works fine on MacOSx however when running on Windows 7 64bit the complier throws an error on the start drawing command, saying the sprite has not been initialised indicated line. If you continue the program it ...
by s0ula55a551n
Sun Jan 31, 2016 12:07 pm
Forum: Coding Questions
Topic: Database linked records query
Replies: 9
Views: 2357

Re: Database linked records query

I would defo go with the suggestion of creating the recipe record and linking the ingredients to it as you go. Then if they Cancel the recipe just remove the records. It's the easiest way. Or use a list to store things as they are added and then create everything at the. End from the list
by s0ula55a551n
Sat Jan 30, 2016 12:38 pm
Forum: Coding Questions
Topic: SQL query proble Missing records
Replies: 10
Views: 2603

Re: SQL query proble Missing records

U need to do select all recipes and do a Join to pictures to get what you are after
by s0ula55a551n
Sat Jan 30, 2016 12:37 pm
Forum: Coding Questions
Topic: SQL query proble Missing records
Replies: 10
Views: 2603

Re: SQL query proble Missing records

Unless I am missing something you are asking it to return all records where recordid match on recipes and pictures, so if there is no pictures record for a recipe it will never return that record cause there is no match
by s0ula55a551n
Tue Jan 26, 2016 5:37 pm
Forum: General Discussion
Topic: For : Next step
Replies: 12
Views: 3901

Re: For : Next step

Yes you can obviously step the loop counter to a variable. But why not just allow it on the step
by s0ula55a551n
Mon Jan 25, 2016 11:46 pm
Forum: Coding Questions
Topic: PB 5.41 x86 Win XP SP3: Sudden IMA in WaitWindowEvent loop
Replies: 13
Views: 3089

Re: PB 5.41 x86 Win XP SP3: Sudden IMA in WaitWindowEvent lo

I think if you want it to run forever you need to process all events. So ideally you would have until event. = 0 as your whole condition. And then use a select case to deal with specific events in that loop
by s0ula55a551n
Sun Jan 24, 2016 11:42 pm
Forum: General Discussion
Topic: For : Next step
Replies: 12
Views: 3901

Re: For : Next step

I found this annoying also and can't see good reason why it has to be constant. Most version of basic I have used allow you to set the step using a variable
by s0ula55a551n
Wed Jan 13, 2016 10:35 pm
Forum: Coding Questions
Topic: Library Viewer
Replies: 1
Views: 2933

Re: Library Viewer

No one ? Is this just me or a bug or u got wrong end of stick. ?
by s0ula55a551n
Fri Jan 08, 2016 9:52 pm
Forum: Coding Questions
Topic: Pointers, modules and structure
Replies: 10
Views: 3137

Re: Pointers, modules and structure

Easy enough then to destroy using a method on the module :)

Take it this is not mad and will free the memory properly ?

Procedure createEnemy(type)

Protected *newEnemy.object

*newEnemy = AllocateStructure(object)
With *newEnemy

\curr_x_dir = 44

EndWith


ProcedureReturn ...
by s0ula55a551n
Fri Jan 08, 2016 9:36 pm
Forum: Coding Questions
Topic: Pointers, modules and structure
Replies: 10
Views: 3137

Re: Pointers, modules and structure

Maybe something like this:



Thanks, put my on the correct lines. Can't believe hit was a scoping error :)

so this works much better now. Thanks :)

Module obj_Create

Procedure.i createEnemy(type)

Protected *newEnemy.object

*newEnemy = AllocateStructure(object)
*newEnemy\curr_x_dir ...
by s0ula55a551n
Fri Jan 08, 2016 9:29 pm
Forum: Coding Questions
Topic: Library Viewer
Replies: 1
Views: 2933

Library Viewer

Hi,

I am using the latest version of PureBasic 5.41 LTS and Mac OSX 10.11.12.

If I have created sprites and debug my program the library viewer never has an option display the sprites.

Is this a bug or not an implemented feature ?

Thanks