Search found 29 matches

by Arcee_uk
Wed Oct 07, 2009 7:52 pm
Forum: Coding Questions
Topic: Reading Access 2007 database contents
Replies: 8
Views: 4266

Re: Reading Access 2007 database contents

I have just tired to use that code to access one of my .accdb files but I am getting an error on this command:

FinishDatabaseQuery(0)

Purebasic is saying: FinishDatabaseQuery() is not a function, array, macro or linked list/

Any ideas why, I just cut and pasted the code as I assumed it would ...
by Arcee_uk
Wed Oct 07, 2009 2:14 pm
Forum: Coding Questions
Topic: Differences between an .mdb and an .accdb file
Replies: 3
Views: 2448

Re: Differences between an .mdb and an .accdb file

I presume the MDB_Connect() function is creating a DSN-less connection. In which case the connection string needs to specifically list the driver as "Microsoft Access Driver (*.mdb, *.accdb)".

See Marco 2007's and Fluid-byte's responses in one of your own threads :

http://www.purebasic.fr ...
by Arcee_uk
Wed Oct 07, 2009 1:49 pm
Forum: Coding Questions
Topic: Differences between an .mdb and an .accdb file
Replies: 3
Views: 2448

Differences between an .mdb and an .accdb file

Hi people,

Been a while since I was last on here (over a year I think...), so I am very rusty at all this and trying to find my feet again.

Can someone clarify something for me which I am confused about.

I am going to be reading and writing to some database files created in Microsoft Access. If I ...
by Arcee_uk
Thu Aug 14, 2008 7:28 pm
Forum: Coding Questions
Topic: Working through a complete directory structure/tree.
Replies: 1
Views: 883

Working through a complete directory structure/tree.

I need to try and get the complete file structure of a directory so I can work on the files within it. Each file is going to be renamed based up the directories which it is located under. So, for example Data/Images/Icons/Window1/ May have all it's files renamed to "Window1_Iconsxxx.jpg"

---

Found ...
by Arcee_uk
Wed Aug 13, 2008 8:44 pm
Forum: Coding Questions
Topic: Cannot select main window after opening & Closing a seco
Replies: 13
Views: 1570

Glad it helps.

You do need to post as small a snippet as possible though. Copying code directly from PureVision does make things a little difficult for those who would otherwise help out. Normally a problem like this would have been solved in a matter of minutes! :)

Points taken on board. I will ...
by Arcee_uk
Wed Aug 13, 2008 8:22 pm
Forum: Coding Questions
Topic: Cannot select main window after opening & Closing a seco
Replies: 13
Views: 1570

On closing the second window the first one remains disabled because of the DisableWindow(#Window_Form1,1).

You thus need to add a DisableWindow(#Window_Form1,0) at an appropriate juncture; probably in the NewEntry_WindowSwapBack() procedure.

Thank you. I had a feeling it would be something ...
by Arcee_uk
Wed Aug 13, 2008 7:43 pm
Forum: Coding Questions
Topic: Cannot select main window after opening & Closing a seco
Replies: 13
Views: 1570

XIncludeFile "Includes\New_Entry_Handling.pb"
holy cow! http://i15.photobucket.com/albums/a377/skotroll/smilies/holycowsmile.gif
... seems to be incredibly difficult to post a snippet of code we could copy/paste into the IDE and run ...

I'll ignore the scarcasm....

I forgot that bit as it was ...
by Arcee_uk
Wed Aug 13, 2008 7:08 pm
Forum: Coding Questions
Topic: Cannot select main window after opening & Closing a seco
Replies: 13
Views: 1570

What I was asking for was a bare bones example (sans any external includes/ dependencies) that shows the problem. I still cannot execute the code as posted so I can't be of any help.

In other words, can you post executable code that shows a problem like... ...returning focus back to my main window ...
by Arcee_uk
Wed Aug 13, 2008 5:54 am
Forum: Coding Questions
Topic: Cannot select main window after opening & Closing a seco
Replies: 13
Views: 1570

The full code is:


Removed as not what was asked for. Opppsss..

I hope that helps.
by Arcee_uk
Tue Aug 12, 2008 10:59 pm
Forum: Coding Questions
Topic: Cannot select main window after opening & Closing a seco
Replies: 13
Views: 1570

Cannot select main window after opening & Closing a seco

Hi.

I am having trouble returning focus back to my main window after lunching a second window off a gadget icon selection.

This is my main loop (the Debug commands are there to tell me what has focus at key points, the DisplayEntry() line is a procedure which displays data on this screen and is ...
by Arcee_uk
Sun Aug 10, 2008 9:58 am
Forum: Coding Questions
Topic: Menu
Replies: 5
Views: 1289

BEcause I am new to PB can I just confirm I am understanding the code above.

You are basically saying:

Select EventGadget() : If xxx gadget is selected.

Case 0 : If on Window 0

Case 1 : If On Window 1

etc


Is that right? I could not follow this Case and Select commands as they are a strange ...
by Arcee_uk
Sat Aug 09, 2008 1:06 pm
Forum: Tricks 'n' Tips
Topic: [Windows] AutoComplete for StringGadgets
Replies: 70
Views: 41061

Hi,

I have been playing aound with the autocomplete gadget and it is proving to be very handy.

I would like to know how to find out which element of the Srting$ array has been selected, as I would like to populate some other gadgets with text from an array depending on what is selected with the ...
by Arcee_uk
Sat Aug 09, 2008 11:59 am
Forum: Coding Questions
Topic: Checking how an array was Dimmed....
Replies: 2
Views: 579

Checking how an array was Dimmed....

If I Dim an array to say 34 elements how I can get my program to check what that array was dimmed to, I.e the maximum elements available?

E.g I use the command:

Dim Arrary.l(45)

My program needs to redim this array by 6 to make it larger, but doesn't know how big the array was. So it needs to ...
by Arcee_uk
Sat Aug 09, 2008 9:36 am
Forum: Tricks 'n' Tips
Topic: [Windows] AutoComplete for StringGadgets
Replies: 70
Views: 41061

Hi.

I have just found this code and while I have no idea what all the additional bits do since the first set of code (which works perfectly for me), I have a question.

Is there a way for a user to see ALL the possible options in the autocomplete list. So if you hit the down arrow you see all ...
by Arcee_uk
Sat Aug 09, 2008 8:01 am
Forum: Coding Questions
Topic: Auto-Complete in a String Gadget.
Replies: 2
Views: 719

Stupidly I did not think of that for some reason. Which is odd as I do normally. Thanks .