|
IsVBIDE
Returns the boolean value True
if the VB project is running in the VB Development Environment.
- Syntax
-
If IsVBIDE() Then ...
Note: This command is called by the LoadRequest and ErrorHandler commands.
|
LoadRequest
Adds every Name/Value pair in the visitor's request into the Request collection.
- Syntax
-
LoadRequest
Call LoadRequest
Remarks
Calling this command should be one of the first things your VB code does.
It looks in several places for Name/Value pairs.
- Server Variables - Consists of some HTTP headers sent by the visitor's browser;
some request specific Name/Value pairs provided by the web server;
and some Environment Variables.
- Standard In - The Name/Value pairs from an HTML Form.
This is empty unless the form's METHOD property set to POST.
- QUERY_STRING - The Name/Value pairs from an HTML Form (METHOD=GET)
or Name/Value pairs hard coded into a Hyper Link.
- HTTP_COOKIE - All the cookies available to this web server.
LoadRequest will also backup and restore the Request collection as needed.
Keep in mind that no request is available
if the VB project is run in the VB Development Environment.
So, for that situation, LoadRequest always tries to restore a backup.
LoadRequest makes a backup if the VB project is running as an executable
and if the IsCgiDebugOn boolean variable is set to True.
See also:
ServerVariables,
StandardIn, and
BackupRequest.
|
Parse
Used to cut up a string that contains separators.
Returns the part of rList before the first Separator found in rList.
ParsedPart and Separator get removed from rList.
- Syntax
-
ParsedPart = Parse(rList, Separator)
Part
|
Description
|
| rList |
Required text to be separated.
Note that its value changes since ParsedPart and Separator get removed from it.
|
| Separator |
Required text to be found rList.
The first place where Separator is found in rList
marks the end of the part returned.
|
Remarks
The text returned does not contain Separator.
If Separator is not found in rList,
then all of rList is returned
and rList is set to an empty string.
Note: This function is called by LoadRequest in VbWeb.Bas.
Example
This example fills a list box with the names in Text.
Text = "Bob;Jane;Bill;Joe;June"
Do Until Text = ""
List1.AddItem Parse(Text, ";")
Loop
|

|
|
|