473,499 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

the perfect function

Can someone please come up with a function that will accomplish this?

function bugs(err, code)
put user.inDark(err)
fixed = code.repair(err)
history.go(-1)
bugs = fixed
end function

To call it would probably require something like this:

Zap After Preempt Post Each Repair

Maybe it could be a COM file?!

dim bugfix
set bugfix = CreateObject("ZAPPER.bugs")

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Aug 15 '05 #1
4 1152

"Roland Hall" <nobody@nowhere> wrote in message news:OM**************@TK2MSFTNGP10.phx.gbl...
Can someone please come up with a function that will accomplish this?

function bugs(err, code)
put user.inDark(err)
fixed = code.repair(err)
history.go(-1)
bugs = fixed
end function

To call it would probably require something like this:

Zap After Preempt Post Each Repair

Maybe it could be a COM file?!

dim bugfix
set bugfix = CreateObject("ZAPPER.bugs")

--
Roland Hall
Something's missing :
bugs = fixed Time.RollbackToBeforeEvent(); end function


;)
Antonio
Aug 16 '05 #2
"Cactus Corp." wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
:
: "Roland Hall" <nobody@nowhere> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
: > Can someone please come up with a function that will accomplish this?
: >
: > function bugs(err, code)
: > put user.inDark(err)
: > fixed = code.repair(err)
: > history.go(-1)
: > bugs = fixed
: > end function
: >
: > To call it would probably require something like this:
: >
: > Zap After Preempt Post Each Repair
: >
: > Maybe it could be a COM file?!
: >
: > dim bugfix
: > set bugfix = CreateObject("ZAPPER.bugs")
: >
: > --
: > Roland Hall
:
: Something's missing :
:
: > bugs = fixed
: Time.RollbackToBeforeEvent();
: > end function

That's what this was for: history.go(-1)

However, that would be mixing javascript with vbscript so yours sounds
better.

I also forgot to turn the light back on.

Revised:

function bugs(err, code)
put user.inDark(err)
fixed = code.repair(err)
Time.RollbackToBeforeEvent(err)
pop user.inDark(err)
bugs = fixed
end function

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Aug 16 '05 #3
Roland Hall wrote:
put user.inDark(err)
...
pop user.inDark(err)


Seems to me it ought to read:

Dark.push(user)
...
Dark.pop()

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Aug 16 '05 #4
"Dave Anderson" wrote in message
news:Ov**************@tk2msftngp13.phx.gbl...
: Roland Hall wrote:
: > put user.inDark(err)
: > ...
: > pop user.inDark(err)
:
: Seems to me it ought to read:
:
: Dark.push(user)
: ...
: Dark.pop()

Thanks. Making the corrections...

function bugs(err, code, user)
Dark.push(user)
fixed = code.repair(err)
Time.RollbackToBeforeEvent(err)
Dark.pop()
bugs = fixed
end function

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Aug 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
14702
by: | last post by:
I have to write a program that displays all of the perfect numbers less than 1000. I know I need 2 for loops and at least one if statement. What I need to know is, is there any method in Java to...
2
2185
by: Tim | last post by:
Hi, I have created some code for printing a column report. The default page size is 850 x 1100, which is correct. The print preview looks perfect. The data is positioned exactly where it should...
6
1682
by: Alexis Nikichine | last post by:
Hello, Today, I have a function: function f() { } and am looking for a way of distinguishing, from inside f, whether it
4
8089
by: The 1 | last post by:
Q-1 Can sm1 suggest a program to check whether a given no is perfect square or not?? Q-2 Also sm1 suggest a program to check whether a given no is perfect power or not?? * PEfect power is a no...
2
1785
by: giulyteh8 | last post by:
An integer number is said to be prefect number if its factors, including 1(but not the number itself), sum to the number. For example, 6 is a prefect number bcoz 6=1+2+3. Write a function called...
1
3400
by: jacob navia | last post by:
Everybody knows that hash tables are fast. What is less known is that perfect hash tables are even faster. A perfect hash table has a hash function and a table layout that avoids collisions...
2
12666
by: wkid87 | last post by:
Using C# Microsft Visual C#, Console Application I'm needing help with the user entering in a number to tell if it perfect or not. I have the perfect number figure out. Here in the instruction: ...
2
3246
by: bearophileHUGS | last post by:
Following links from this thread: http://groups.google.com/group/comp.lang.python/browse_thread/thread/179e1a45485ab36a# I have found this perfect hash (minimal too) implementation:...
35
1920
by: Stef Mientki | last post by:
hello, I (again) wonder what's the perfect way to store, OS-independent, filepaths ? I can think of something like: - use a relative path if drive is identical to the application (I'm still a...
17
9291
by: nickels | last post by:
-Alright im supposed to make a program that tests for perfect numbers. I have to use 2 methods and 3 methods if you count the main method. -My first method has to return a boolean value of true...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7229
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.