~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Artistic, monlithic medical professionals are RIPPING stunning landscapes, happily.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Naah, not now.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Singing won't help heal the deep wounds within...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

smells -> like teen spirit

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

No cigars on that one s.o.s, here is the result

Doesn't make a difference, I don't smoke anyways...:mrgreen:

And btw Jeff, thanks for correcting my code in my absence, would have done that anyways...:p.

Maybe should run my programs before I post them here...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

disinfectant -> Harpic

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Nature is our Mother -- but this fact has failed to penetrate the minds of some thick headed bozos.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

now full of

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

in which we

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Daniweb uses a sprinkling of AJAX here and there and with AJAX the back button really loses its original meaning. Try navigating the site using the drop down list at the top rather than hitting back button multiple times.....

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

"Come to think

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Artistic, MONOLITHIC graphics professionals are sketching stunning landscapes, happily.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Self analysis is the best form of analysis.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

germs -> Kill them all.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hey there my Kitesurfing friend, welcome to Daniweb.. :D

Come to think of it, even Daniweb is very windy... ;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Vital to our body is our soul.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Import a database file into Access Database.. ? Can you clarify by giving examples.. ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Since the data is coming from a raw source (text file, database, user input...) wouldn't it be nice if we didn't assume that the "[" will always be the first character of "txt" and "]" is not always the last character of "txt".

Given that the data can also be of the form " [ 32] " or "[32 ]". To handle such situations here is what I have come up with....

data_raw = """[20 ]
[ 35 ]
[40  ]
[84 ]
[100 ]
[ 245]
[  260]
[ 300 ]
[ 440 ]
[   521     ]
[ 650    ]
"""
data_list = data_raw.split()
print data_list  
data_list2 = [x.strip(" []") for x in data_list]
print data_list2
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I guess you should read with more concentration....

int fflush(FILE* stream);

Flushes stream stream and returns zero on success or EOF on error.

Effect undefined for input stream. fflush(NULL) flushes all output streams.

The effect of fflush is undefined on the input stream as it was always meant for output file streams for forcing the output onto the screen.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

...And to provide the final touch about the validation part configure your table column as follow:

At the time of field creation in design view...

Field Name: hours
Data Type: Number

And now the field general properties (at the bottom, in design view)

Field Size: Decimal
Scale: 2
Decimal Places: 2
Validation Rule: ([hours] * 100)Mod(25) = 0
Validation Text: The entered value should be in steps of 0.25

And voila, the field will work as you expected it to work....

PS: Moving this thread to the MS Access Forum...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

try using...
fflush(stdin);
after every gets();

Bad, bad really bad. Read this.

Salem commented: More power pills than pacman - Salem +5
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You can always create a global variable which is placed in a module to maintain the total and keep on updating it when you move from one page to another.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yes rightly said -- its known as [search]Double buffering[/search] in which the next frame to be drawn is written to the RAM (in case of software implementation) or the the VRAM (hardware implementation) and is then displayed on the screen in the next frame.

Just FYI, there is also an advanced way to achieve it known as [search]Triple Buffering[/search].

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

And ~S.O.S~, us Dr Who addicts are growing in number dude, we'll soon be an army.

Amen to that.....:mrgreen:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Create a class with private members like instances of ADODB.Connection, ADODB.Recordset etc. and with functions which open the Connection, functions which open, manipuate and close the Recordset etc.

Something like:

Option Explicit
Private rs As New ADODB.Recordset
Private conn As New ADODB.Connection


Public Property Let Connection(ByVal vData As ADODB.Connection)
    Set conn = vData
End Property

Public Property Get Connection() As ADODB.Connection
    Set Connection = conn
End Property


Public Property Let Recordset(ByVal vData As ADODB.Recordset)
    Set rs = vData
End Property

Public Property Get Recordset() As ADODB.Recordset
    Set Recordset = rs
End Property

Public Function Initialise(ByVal Connection_string As String, ByVal Recordset_string As String) As clsConnection
    conn.Open Connection_string
    rs.Open Recordset_string, con, adOpenKeyset, adLockOptimistic
    Set Initialise = Me
End Function

Note that this is just a template and may or may not work...I haven't as such tested it. Use it as a reference to create your own class.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Words seem to be strange till we come to know of their meaning...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yes he could, but that's not what he wants to do. And it would look terrible and be awfuly sloooooow if there were a lot of graphics on the screen such as you might see in games.

But thats what happens in real games -- the whole screen in cleared and the updated graphics are redrawn.

As a matter of fact, this is the very way display devices work. The whole screen is erased and redrawn and the frequency of that depends on what we know as the refresh rate of the monitor. (normally measured in Hertz)

And strange enough this is the very way API's like DirectX and OpenGL work, erasing the screen and redrawing the next frame.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

The example posted by PirateTUX was meant to be taken as a template and not copied word to word. You have to modify the example to include the database name, the table name and to create a connection.

If you are a beginner you can start your VB quest here.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Artistic, creative graphics PROFESSIONALS are sketching stunning landscapes, happily.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Download the executable plus the packed source code of the tutorial from here and see if the executable runs. If yes then the problem is not with codecs but with your code.

Try compiling and running the code which comes in the zip file and see if it works. If it does compare the source code with the code you have written -- there has got to be a minor discrepancy in both the codes....

Repost if what I suggested doesn't work...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

fit -> unfit

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get a Rapchick.

I put in Iron Maiden.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

"Hey that was

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Line, Circle, Sqares...sheesh man.. I talk in Quaternions.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Artistic, creative graphics gurus are sketching STUNNING portraits, happily.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hello there Sefffy, welcome to Daniweb :D

And yeah, its a good thing to meet a Dr. Who addict.... ;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hello there Dan, welcome to Daniweb. :D

Hope you find the answer to all your questions here.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get to hear from iTunes.

I put in a sticker.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

diamond -> rare

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get to keep it as a gift from Daniweb.

I put in a vehicle.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Some points to be noted:

1. Don't use the old style of header inclusion ( #include <iostream.h> ).
Instead use #include <iostream> followed by using namespace std ; .
The latest C++ standard has the concept of namespaces and aall the standard C++ functions in current compiler implementations are enclosed in the namespace std.

2.

for (k = 25; r == '\0'; k--)
{
     r == word[k];  // I guess you wanted to do assignment ?
     p = k;
}

3.

// you can't do this, it is not allowed in C / C++.
// The variable which specifies the dimension must be const qualified
// or must be defined using a Macro.
char pig[p + 2]; 

for (int f = 0; f == p; f++)
    pig[f] = word[f];

And so many more syntax errors like missing semicolons and what not. Try to eliminate the above mentioned along with the other simple errrors and then repost.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

22.309 :)

You don't give up, do you ? ;)

Looks like this game has become a part and parcel of your daily curriculum. :cheesy:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

"Think about it people, think of all the money we will come into after we loot the bank."

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Code tags preserve all the indentation.

So if your code is indented, it should appear as it is in the browser window when you enclose it in code tags.

Also don't manually color your code, as you had done in your previous attempt. Just enclose the entire code in code tags, don't do anything else. It will automatically come out to be indented and highlighted.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get to witness World War III.

I put in a canon.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

jared -> jade

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

clean it up

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Artistic, creative graphics gurus are SKETCHING Hexadecimal numbers, geekily.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Pearls -> Diamonds

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Set the Border Style of the form to 0 along with the Window State to be maximized.

Don't forget to add a "QUIT" button to the form otherwise you won't be able to quit the application.

Another way of doing it the hard way is mentioned here.