Archive for December, 2006

MsgBoxStyle.Exclamation 48 Warning Message MsgBoxStyle.Information (Mambo hosting) 64 Information Message

Tuesday, December 26th, 2006

MsgBoxStyle.Exclamation 48 Warning Message MsgBoxStyle.Information 64 Information Message Default Button Constants Constant Value Default button MsgBoxStyle.DefaultButton1 0 First button MsgBoxStyle.DefaultButton2 256 Second button MsgBoxStyle.DefaultButton3 512 Third button MsgBoxStyle.DefaultButton4 768 Fourth button Modality Constants Constant Value Modality MsgBoxStyle.ApplicationModal 0 Application MsgBoxStyle.SystemModal 4096 System Return Values The following intrinsic constants can be used to determine the action taken by the user and represent the value returned by the MsgBox function: Constant Value Button clicked MsgBoxResult.OK 1 OK MsgBoxResult.Cancel 2 Cancel (or Esc key pressed) MsgBoxResult.Abort 3 Abort MsgBoxResult.Retry 4 Retry MsgBoxResult.Ignore 5 Ignore MsgBoxResult.Yes 6 Yes MsgBoxResult.No 7 No If the MsgBox contains a Cancel button, the user can press the Esc key and the function’s return value will be that of the Cancel button. Programming Tips and Gotchas Application modality means that the user cannot access other parts of the application until a response to the message box has been given. In other words, the appearance of the message box prevents the application from performing other tasks or from interacting with the user other than through the message box. System modality used to mean that all applications were suspended until the message box was closed. However, with multitasking operating systems, such as Windows 95 and Windows NT, this is not the case. Basically, the message box is defined to be a “Topmost” window that is set to “Stay on Top,” which means that the user can switch to another application and use it without responding to the message box. But because the message box is the topmost window, it will be positioned on top of all other running applications. Unlike its InputBox counterpart, MsgBox cannot be positioned on the screen. It is always displayed in the center of the screen. If your application is to run out-of-process on a remote machine, you should remove all MsgBox functions since they will not be displayed to the user, but instead will appear on the monitor of the remote server! MsgBox should never be used in ASP.NET applications.
Quick Hint: If you are looking for best quality webspace to host and run your tomcat application check Vision tomcat hosting services

The sum of the Button, Icon, DefaultButton, (Daddy web hosting) and

Tuesday, December 26th, 2006

The sum of the Button, Icon, DefaultButton, and Modality constant values title Use: Optional Data Type: String The title displayed in the title bar of the message box dialog box Return Value A MsgBoxResult enumeration constant indicating the button clicked by the user to close the message box Description Displays a dialog box containing a message, buttons, and optional icon to the user. The action taken by the user is returned by the function in the form of an enumerated constant. Rules at a Glance prompt can contain approximately 1,000 characters, including carriage return characters such as the built-in vbCrLf constant. If the title parameter is omitted, the name of the current application or project is displayed in the title bar. If you omit the buttons argument, the default value is 0; that is, VB opens an application modal dialog box containing only an OK button. The constants of the MsgBoxStyle enumeration can be added together to form a complete buttons argument. The constants can be divided into the following groups: Button Display Constants Icon Display Constants Default Button Constants Modality Constants Only one constant from each group can be used to make up the overall buttons value. Button Display Constants Constant Value Buttons to display MsgBoxStyle.OKOnly 0 OK only MsgBoxStyle.OKCancel 1 OK and Cancel MsgBoxStyle.AbortRetryIgnore 2 Abort, Retry, and Ignore MsgBoxStyle.YesNoCancel 3 Yes, No, and Cancel MsgBoxStyle.YesNo 4 Yes and No MsgBoxStyle.RetryCancel 5 Retry and Cancel Icon Display Constants Constant Value Icon to display MsgBoxStyle.Critical 16 Critical Message MsgBoxStyle.Question 32 Warning Query

Hint: If you are looking for very good and affordable webspace to host and run your j2ee hosting application check Sandzak.com j2ee web hosting services

Private jvm hosting - Returns the month name of a given month.

Tuesday, December 26th, 2006

Returns the month name of a given month. For example, a month of 1 returns January or (if abbreviate is True) Jan. Rules at a Glance The default value for abbreviate is False. Example Public Function GetMonthName(dat As Date) As String Dim iMonth As Integer = Month(dat) GetMonthName = MonthName(iMonth) End Function Programming Tips and Gotchas month must be an integer; it cannot be a date. Use DatePart(”m”, dateval) to obtain a month number from a date. If month has a fractional portion, it is rounded before calling the MonthName function. MonthName with abbreviate set to False is the equivalent of Format(dateval, “mmmm”). MonthName with abbreviate set to True is the equivalent of Format(dateval,”mmm”). See Also WeekdayName Function MsgBox Function Class Microsoft.VisualBasic.Interaction Syntax MsgBox(prompt[, buttons][, title]) prompt Use: Required Data Type: String The text of the message to display in the message box dialog box buttons Use: Optional Data Type: MsgBoxStyle enumeration

Hint: This post is supported by Gama php5 hosting services

Programming Tips and Gotchas (Struts hosting) The validity of

Monday, December 25th, 2006

Programming Tips and Gotchas The validity of the date expression, as well as the position of the month element within the date expression, is initially determined by the locale settings of the current Windows system. However, some intelligence has been built into the Month function that surpasses the usual comparison of a date expression to the current locale settings. For example, on a Windows machine set to US date format (mm/dd/yyyy), the date “13/12/1998″ would technically be illegal. However, the Month function returns 12 when passed this date. The basic rule for the Month function is that if the system-defined month element is outside legal bounds (i.e., greater than 12), the system-defined day element is assumed to be the month and is returned by the function. Since the IsDate function adheres to the same rules and assumptions as Month, it can be used to determine whether a date is valid before passing it to the Month function. Visual Basic also has a new MonthName function for returning the name of the month. You can also use the DatePart function. See Also Day Function, Year Function MonthName Function Class Microsoft.VisualBasic.DateAndTime Syntax MonthName month [, abbreviate] month Use: Required Data Type: Integer The ordinal number of the month, from 1 to 12 abbreviate Use: Optional Data Type: Boolean A flag to indicate if an abbreviated month name should be returned Return Value String containing the name of the specified month Description
Hint: If you are looking for good and high quality web space to host and run your java application check Vision java web hosting services

This means that, particularly in the event of (Web hosting comparison)

Monday, December 25th, 2006

This means that, particularly in the event of a naming conflict (where two routines in different code modules have the same name), you can qualify the function or procedure with the name of the module in which it resides. For example, if the SayHello procedure is found in a module named modLibrary, it can be called as follows: modLibrary.SayHello( ) If a code module is to contain a routine that serves as a program entry point, that routine must be named SubMain. It must also have Public scope. VB .NET/VB 6 Differences The statement is new to VB .NET. VB 6 placed each code module in a separate BAS file, which rendered beginning and ending statements unnecessary. A single VB .NET file, on the other hand, can contain multiple code modules and classes, thus necessitating the use of beginning and ending statements. See Also Class Statement Month Function Class Microsoft.VisualBasic.DateAndTime Syntax Month(datevalue) datevalue Use: Required Data Type: Date Date variable or literal date Return Value An Integer between 1 and 12 Description Returns an integer representing the month of the year of a given date expression Rules at a Glance If datevalue contains Nothing, Month returns Nothing.

Hint: This post is supported by Gama php5 hosting services

Example MsgBox(10 Mod 3) (Jboss hosting) ‘ returns 1 Module…End

Monday, December 25th, 2006

Example MsgBox(10 Mod 3) ‘ returns 1 Module…End Module Statement Syntax accessmodifier Module modulename ‘ statements End Module accessmodifier Use: Optional Type: Keyword One of the following keywords determine the visibility of the module: Public Makes the module visible to all applications Friend Makes the module visible throughout the project modulename Use: Required Type: String literal The name of the code module Description Defines a code block as a code module Rules at a Glance If accessmodifier is omitted, the module is Public by default. modulename follows standard Visual Basic naming conventions and must be unique within its assembly. statements can consist of the following: o Constant and variable definitions o Function and procedure definitions Programming Tips and Gotchas Internally, code modules are implemented as classes. Their public variables are treated as static fields, and their public functions and procedures are treated as static (shared) methods.

Hint: This post is supported by Gama php5 hosting services

Rules at a (Struts hosting) Glance If you omit

Monday, December 25th, 2006

Rules at a Glance If you omit the drive from path, a new folder will be created on the current drive. You can specify the drive by using either its local drive letter or its UNC name. path can either be a fully qualified path (i.e., a path from the drive’s root directory to the directory to be created) or a relative path (i.e., a path from the current directory). If the directory to be created by the MkDir procedure already exists, an IOException exception is raised. Programming Tips and Gotchas If your program is running on Windows NT, ensure that the logged-in user has the right to create a folder on the specified drive prior to calling the MkDir procedure. VB does not automatically make the new folder the current folder after a call to MkDir. You will need to call the ChDir procedure to do this. To remove a folder, use the RmDir procedure. Use CurDir to determine the current drive. See Also RmDir Procedure Mod Operator Syntax result = number1 Mod number2 number1, number2 Use: Required Data Type: Any A numeric expression Return Value Returns the modulus Description Returns the modulus, that is, the remainder when number1 is divided by number2. This return value is a non-negative integral data type. Rules at a Glance Floating point numbers are rounded to integers before the division. If number1 or number2 is Nothing, then an error occurs. The Mod operator returns the data type of number1 and number2 if they are the same type, or the widest data type of number1 and number2 if they are different.

Hint: This post is supported by Gama web hosting php services

Data Type: Double The interest rate (Adult webspace) received on

Sunday, December 24th, 2006

Data Type: Double The interest rate received on gains from cash investment Return Value A Double representing the modified internal rate of return Description Calculates the modified internal rate of return, which is the internal rate of return when payments and receipts are financed at different rates Rules at a Glance valuearray must be a one-dimensional array that contains at least one negative value (a payment) and one positive value (a receipt). The order of elements within the array should reflect the order in which payments and receipts occur. financerate and reinvestrate are percentages expressed as decimal values. For example, 10% is expressed as 0.10. Programming Tips and Gotchas Each element of valuearray represents a payment or a receipt that occurs at a regular time interval. If this is not the case, MIRR will return erroneous results. See Also IRR Function MkDir Procedure Class Microsoft.VisualBasic.FileSystem Syntax MkDir(path) path Use: Required Data Type: String The name of the folder to be created Description Creates a new folder
Note: If you are looking for top 10 and very good webhost to host and run your jsp application check Actions jsp hosting services

Xaraya web hosting - Date variable or literal date Return Value An

Sunday, December 24th, 2006

Date variable or literal date Return Value An Integer between 0 and 59, representing the minute of the hour Description Extracts the minute component from a given date/time expression Rules at a Glance If TimeValue is not a valid date/time expression, the function generates runtime error 13, “Type mismatch.” To prevent this, use the IsDate function to check the argument before calling the Minute function. If TimeValue contains Nothing, 0 is returned, so be careful here to check for Nothing. You can also use the DatePart function. See Also Hour Function, Second Function MIRR Function Class Microsoft.VisualBasic.Financial Syntax MIRR(valuearray( ), financerate, reinvestrate) valuearray( ) Use: Required Data Type: Array of Double An array of cash flow values financerate Use: Required Data Type: Double The interest rate paid as the cost of financing reinvestrate Use: Required
Note: If you are looking for cheapest and affordable webspace to host and run your servlet application check Astra j2ee hosting services

Use: Required Data Type: Any numeric A numeric (Linux web host)

Sunday, December 24th, 2006

Use: Required Data Type: Any numeric A numeric data type or expression Return Value Returns the minimum of val1 and val2 in the widest data type of the two numbers Description Returns the minimum of val1 and val2, in the same data type as the numbers. See Rules at a Glance for more detail. Rules at a Glance If the two arguments do not have the same data type, then the narrower data type is cast to the wider type. For instance, the code fragment: Dim x As Integer = 5 Dim y As Double = 454.8 MsgBox(Math.Min(x, y)) displays 454.8 without error. The datatype returned by the function in this instance is a Double. This is a Shared member, so it can be used without creating any objects. VB .NET/VB 6 Differences The Min function is new to the .NET Framework. See Also Max Function Minute Function Class Microsoft.VisualBasic.DateAndTime Syntax Minute(TimeValue) TimeValue Use: Required Data Type: Date

Hint: This post is supported by Gama web hosting php mysql provider