473,563 Members | 2,662 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("Z APPER.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 1155

"Roland Hall" <nobody@nowhere > wrote in message news:OM******** ******@TK2MSFTN GP10.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("Z APPER.bugs")

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


;)
Antonio
Aug 16 '05 #2
"Cactus Corp." wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
:
: "Roland Hall" <nobody@nowhere > wrote in message
news:OM******** ******@TK2MSFTN GP10.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("Z APPER.bugs")
: >
: > --
: > Roland Hall
:
: Something's missing :
:
: > bugs = fixed
: Time.RollbackTo BeforeEvent();
: > 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.RollbackTo BeforeEvent(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******** ******@tk2msftn gp13.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.RollbackTo BeforeEvent(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
14709
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 test if a number is perfect? Thanks.
2
2190
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 be. (centered) When I go to print however, the data is shifted to the right. About a margin's worth. I set the margins at 50 and it looks like it...
6
1688
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
8095
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 which can be expressed some power of a any noo. Its better if it is very efficient!
2
1792
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 prefect that determines if parameter number is a perfect number. Use this function to determine and prints out all the perfect number between 1 to 1000....
1
3409
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 completely. You can lookup a key in the table with a single hash function call. What is even less known is that there is a perfect software for...
2
12678
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: 1. An integer number is said to be a perfect number if its factors, including 1 (but not the number itself), sum to the number. For example, 6 is a...
2
3252
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: http://burtleburtle.net/bob/hash/perfect.html I have already translated part of it to D, and it seems to work well enough. As discussed in the PyConDue, I...
35
1936
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 Windows guy) - use some kind of OS-dependent translation table if on another drive - use ? if on a network drive
17
9298
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 or false if the argument is or isn't a perfect number. I found that all perfect numbers either end in a 6 or an 8 so i was thinking i could just use...
0
7659
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7580
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7882
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7945
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5481
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5208
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3634
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1194
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.