Integer Demo
Last changed: -66.78.119.225

.

What information is available about a Integer?

A Integer type has the following members:

Integer Add(Object value)
Answer the addition of this integer to the supplied value
Integer Divide(Object value)
Answer the integer division of this integer by the supplied value
Object Equals(Object obj)
Determine whether this object is equal to another object
Object GreaterThan(Integer otherValue)
Answer true or false depending on whether this number is greater than the supplied integer
Object GreaterThanOrEqualTo(Integer otherValue)
Answer true or false depending on whether this number is greater than or equal to the supplied integer
Object LessThan(Integer otherValue)
Answer true or false depending on whether this number is less than the supplied integer
Object LessThanOrEqualTo(Integer otherValue)
Answer true or false depending on whether this number is less than or equal to the supplied integer
Integer Multiply(Object value)
Answer the multiplication of this integer with the supplied value
Integer Random(Integer lowerValue, Integer maxValue)
Answer a random interger from the first supplied integer to the second supplied integer
Integer Subtract(Object value)
Answer the subtraction of the supplied value from this integer

Examples

10.Subtract(5) = 5

5.Equals(5) = true

5.Equals(5).Not = false

5.Lessthan(4) = false

5.GreaterThanOrEqualTo(4) = true

5.GreaterThan(4) = true

4.GreaterThan(5) = false

4.GreaterThanOrEqualTo(5) = false

Is this topic older than 7 days old?: true

30.Divide(9) = 3

35

Number of topics modified in the last minute: 44

Create a random topic on a page

GetTopicToInclude
GetRandomValue

DebuggingFlexWiki

Summary

When I checked out FlexWikiCore, I didn't get the settings necessary for debugging. Here's what I did to set it up.

It's definitely easiest if you are running as an administrator on your development machine. It's not impossible to do it as a non-privileged user, but you're on your own.

  1. First, make sure you've built FlexWiki and can access your Wiki at http://localhost/FlexWiki/.
  2. Set FlexWiki.Web as the startup project.
  3. Change the project properties for FlexWiki.Web as follows:
    1. Enable ASP.NET Debugging: True
    2. Debug Mode: URL (click Apply after setting this)
    3. Start URL: http://localhost/flexwiki/default.aspx
  4. Set a breakpoint at a convenient place. I set it at WikiEdit.DoPage() to see Wiki start up normally before hitting a breakpoint.
  5. Click Start, and edit a page or do whatever it takes to hit your breakpoint.

Happy Stepping!

The above notes did not work for me in order to debug FlexWiki 2. I believe that they may be for debugging earlier releases of FlexWiki that were compiled on VS 2003.

Here is what I had to do to debug FlexWiki 2 with VS 2005 on Vista (with a little help from Craig)

  1. Get http://localhost/FlexWiki to display in your web browser
  2. Open the FlexWiki.Web project in VS 2005 as administrator. If you are running Vista, you can do this by right clicking on the Visual Studio shortcut and picking run as administrator from the context menu.
  3. On the debug menu, select Attach to Process...
  4. Check Show processes in all sessions and select w3wp.exe (or aspnet_wp.exe in Windows XP) as the process to debug.
  5. Set a breakpoint in the code you want to debug.
  6. In the browser, navigate to a topic in the localhost version of FlexWiki that should pass through the debug point.