English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Programming & Design - July 2007

[Selected]: All categories Computers & Internet Programming & Design

numbers.

Ex: abcdef -> 123456

2007-07-11 12:39:34 · 1 answers · asked by matt56783456 1

Trying to make this as simple as possible. I have 30 or so classes that I need to get access to depending which one is showing. To make things easy, let's say I have three classes as members of another class:
Class1, Class2 and Class3.
I only show one at a time. All three have a method called "UpdateData." I need to make a call to UpdateData in whatever one is showing (or active).
How can I hold a reference to the active class so I can make the call? IE, instead of doing something like:
if (Class1.isActive)
Class1.UpdateData()
else if (Class2.isActive)
Class2.UpdateData()
Remember, I have 30 classes. I just want to hold the active class' reference somehow to call it only once. Something like:
ActiveClass[n].UpdateData()
I could add all of the classes in there and then hold the active class as an integer "n." I can't use Vector or anything because that requires a cast to use. I need the class to change. I can't figure this out. Thanks for any help.

2007-07-11 10:54:00 · 2 answers · asked by JIM 1

In a Oracle procedure, I have an update statement like:

UPDATE employee
SET salary = 1000
WHERE dept_no = 10;

I want it to set a variable (that I can use later) or pop up a message telling me how many records were actually updated in that statement.

How can I do that?

2007-07-11 10:35:43 · 2 answers · asked by lyderslim 3

Hi, whats the quickest way to delete the last two cahracters of a file (without reading the whole thing in and spitting it out again?) . Any perl gurus out there?

thanks...

2007-07-11 10:08:25 · 1 answers · asked by Dudeberry 2

so would like to knw abt both in job perspective . nd wht r the courses timings nd fees ?????? reply awaited thanks

2007-07-11 09:15:59 · 1 answers · asked by Anonymous

I've got a name for it, I know what it would be for, but how would I go about letting execute on Windows machines? Do I need to know C to let it get executed? Anything in depth on how this would work is an instant 10 points.

2007-07-11 09:15:03 · 3 answers · asked by Anonymous

I have this code:
Dim c
Dim w
c = 115
w = (c And 15)

When I run the code, the result w=3... But why ???
What is this code doing?? what does this comparison means ??

Help please

2007-07-11 09:10:20 · 1 answers · asked by André C 2

ALSO... when you get a website, do you have to register for anything?? (law-wise)

please give me recommendations on which web host to get!

ALSO (sorry!) .. what does it mean 'to host your own website'?

2007-07-11 06:03:01 · 9 answers · asked by Blossom 2

When you program and you need to create variables, let's say you're working on a program that needs a variable to hold some kind of money for the player, do you get to choose the variable names (within reason) or do you get a list of specific names you have to give variables? Like, could it be

player.coins
player.cash
player.money
etc?

I know this is along the lines of a C++/Java program, and it's probably not coded exactly right, but it's just an example, so please bear with me. ^_^ Thanks.

2007-07-11 05:51:26 · 4 answers · asked by Invader Z 1

I know you could just use if statements but there's probably a better way to make sure a integer variable is even, and if its odd, it adds one to make it even.

2007-07-11 05:41:07 · 2 answers · asked by uk 2

Is it possible to decompile a java applet or some kind of java program running over the internet? Don't ask, I just want to know because I'm working on something in Java for a website of mine and I don't want people to hack it, so I'm testing it myself. Any help? Thanks.

2007-07-11 05:21:08 · 2 answers · asked by Invader Z 1

2007-07-11 05:18:37 · 5 answers · asked by confused20077 3

I am having a hard time finding the code that makes the exact green on this picture. http://i85.photobucket.com/albums/k52/beautiful_inside09/i117459645_38538.jpg
Can anyone help?

2007-07-11 04:57:07 · 4 answers · asked by ~*Mandie*~ 1

www.mainepcstore.com

2007-07-11 04:47:49 · 2 answers · asked by Anonymous

2007-07-11 03:49:43 · 1 answers · asked by Spearfish 5

I have a website. I would like people to be able to donwload sample programs I make from my website. How do I go about uploading zip files and the like so that someone can download it. I'm using frontpage... I know it's unprofessional but then again it isn't supposed to be.. yet. Any help would be appreciated

2007-07-11 01:55:55 · 2 answers · asked by Surger1 3

I need some basic knoledge on HTML anyone help?

thanks

2007-07-11 00:59:13 · 15 answers · asked by Anonymous

Dataset is a collection tables. isn't it? So, howmany table we can use a single dataset?

2007-07-10 23:01:21 · 5 answers · asked by aravindan s 1

2007-07-10 20:37:26 · 5 answers · asked by suresh 1

i have a table named tblPerson. There is a field in it named PersonID. the data type of the PersonID is nvarchar(5).
there were 9999 rows in the table when i added the series of 10000-10010 it is not sorting the data as it should it. it is showing 10001 - 10010 after the rows of 1000 which is wrong why is it what should i do?

2007-07-10 20:12:40 · 6 answers · asked by Kashan 1

In Comparisin among Java Certifications

2007-07-10 16:28:56 · 4 answers · asked by Mohsin Patel 1

http://www.freewebs.com/weirdslogans/database.c

this program sets up a database of student records. But when I try to run it with a size of 3 or more, it crashes(see comment). Does anyone know why it does this and how to fix it?

2007-07-10 16:11:37 · 3 answers · asked by Anonymous

2007-07-10 15:32:22 · 4 answers · asked by stlsigma2 1

Happy...now you're number one!

2007-07-10 14:31:52 · 3 answers · asked by ... 2

The codes that make your wrting either bold, or underlined, or itallic is waht i mean.

2007-07-10 14:24:39 · 3 answers · asked by none 2

fedest.com, questions and answers