Report in a Separate Window
Question: In a FoxPro 6.0 application, I want to be able to push a button anddisplay a report on the screen. This report should be displayed in a new window,
Question: In a FoxPro 6.0 application, I want to be able to push a button anddisplay a report on the screen. This report should be displayed in a new window,
The max() macro or template takes two values and returns the highest. What if you need to calculate the maximum of three values? You don’t need to write a special
Question: I want to create a system error object that will take care of system errors and database errors. Should I inherit it from the error object, or should I
Question: The following code produces an error when compiled on Microsoft Visual C++ 6 SP3: for (int i = 0; i < 10; i++) cout
Question: I need to post an XML document from one server to another server. Can I use XMLHTTPRequest for this? Answer: Yes, the XMLHTTP Request object can be used to
Question: How can I write a function in C++ that would create a folder/subfolder on the hard-disk? Answer: Standard C or C++ don’t define such a function. However, most platforms
Question: I am trying to develop an MSSQL ASP application that ties real-time into customer’s existing databases at remote locations. The customers use everything from IBM mainframes to SQL or
Question: What is the most efficient method of converting Informix data in a Unix operating system to text or dbf data in an NT operating system (size = 8GB)? Answer:
Question: I have three quick questions: Is the Informix standard ANSI? Does it accept the function CAST()? What is the largest size char that I can declare? Answer: Informix conforms
Question: Is there a macro that returns the name of a function which calls the macro? If not, how can I define such a macro? Answer: Yes and no. The
This handy class module by Kieron O’Connor lets you add a control-less timer to your application, without actually using a Timer control. Beside being useful in itself, the CLiteTimer class
indows Distributed interNet Application (DNA) is an architecture for building n-tiered applications for the Microsoft Windows platform. DNA is based on the Microsoft Component Object Model (COM), which provides for
‘ number of permutations of N objects in groups of M” Note: requires the FACTORIAL routineFunction Permutations(ByVal Objects As Long, ByVal GroupSize As Long) As Double Permutations = Factorial(Objects) /
‘ The factorial of a number” if NUMBER is negative or >170 it raises an’ “subscript out of range” errorFunction Factorial(ByVal number As Long) As Double Static result(170) As Double
‘ the Greatest Common Divisor of two integers’ (it uses the Euclide’s algorithm)’ if either argument is zero you get a “Division by Zero” errorFunction GCD(ByVal n1 As Long, ByVal
‘ A random number in the range (low, high)Function Rnd2(low As Single, high As Single) As Single Rnd2 = Rnd * (high – low) + lowEnd Function Related Posts AI
‘ number of Combinations of N objects in groups of M” Note: requires the FACTORIAL routineFunction Combinations(ByVal Objects As Long, ByVal GroupSize As Long) As Double Combinations = (Factorial(Objects) /
‘ the Least Common Multiple of two integers’ (it uses the Euclide’s algorithm)’ if either argument is zero you get a “Division by Zero” error” Note: if your app also
‘ The fractional part of a floating-point number’ note that negative numbers return negative valuesFunction Fract(number As Variant) As Variant Fract = number – Fix(number)End Function Related Posts Report: More
‘ Base 10 logarithmFunction Log10(number As Double) As Double Log10 = Log(number) / 2.30258509299405End Function Related Posts IBM Bluemix Adds New DevOps ServiceMicrosoft Reorganizes, Combines Windows and Devices GroupsWhat Happened
‘ Return True if the number is primeFunction IsPrime(ByVal number As Long) As Boolean ‘ manually test 2 and 3 If number > 3 Then If number Mod 2 =
Question: I would like to display a “Quote of the Day.” In order to do this, I need to retrieve the numbers of records in a recordset and then randomly
Question: Using VBScript, how can I use the @@Identity SQL Statement to set the keyfield of a record just entered to a variable? Answer: You can issue multiple SQL statements
Question: I’m looking for a copy of snip.exe. This program registers/unregisters components/DLLs under a given directory. Answer: I don’t know about SNIP, but how about an even easier method? Copy
Question: I am trying to back up my server, but there are no freeware products that will save the ACLs off the files on the backup. Tape backup is not
Asking how to select into a variable using dynamic SQL is a frequent question on newsgroups because SQL Server will not let you select into a variable using the EXEC()
Question: Does it make a difference in placing an OUTER or simply a JOIN or a WHERE? Using WHERE: select tb01_field01,tbl01_field02 from tb01,tb02 where tb01_field01 = tb02_field01 Using JOIN: SELECT
Question: Is there any way to recover e-mails deleted from Exchange through Outlook 2000? Answer: Yes, if you have Deleted Item Recovery enabled. If you do, you should see a
Question: What file extensions do I need to copy to a NT Workstation in order to install the Exchange Administrator Console? Answer: Let’s not make life any more difficult than
Question: Does Informix have a function that converts datetime chars for numbers? Answer: Datetime is stored internally as an integer that represents the number of seconds from a certain starting