newman     VBWeb     VBSource     Portfolio    
OUT ON THE INTERNET


Home

Getting Started
- Hello World Example
- SampleMain Example
- Code Snippets
- Request Collection
- Missing Terms
- Multi-Select
- Names Collection

User Guide
- Debugging
- Stepping Through Code
- HTML Templates
- Cookies

Command Reference
- AddToRequest
- BackupRequest
- CgiDebugPrint
- ErrorHandler
- Escape
- Extract
- FileContents
- FileExists
- GetRequest
- GmtDate
- IsVBIDE
- LoadRequest
- Parse
- Redirect
- Replace
- Send
- SendLn
- ServerVariables
- SetCookie
- StandardIn
- UrlDecode
- UrlEncode

Appendix
- Web Server Directory Mapping
- Computer Name & IP Address

Reference

FileContents

Returns all the text in the named file.
Syntax
TextOut = FileContents(FileName)
FileName - Required text argument that specifies the name of the file.

Remarks
If the file does not exist, an empty string is returned. The file can contain binary data. This function is intended for use with HTML Templates. But it is general enough to use elsewhere. Examples of using this function with HTML templates are in the User Guide.

Note: This function is called by LoadRequest in VbWeb.Bas.

FileExists

Returns the boolean value True if the named file exists.
Syntax
If FileExists(FileName) Then ...
FileName - Required text argument that specifies the name of the file.

Note: This function is called by LoadRequest in VbWeb.Bas.

GetRequest

Returns the value in the Name/Value pair that matches the name provided.
Syntax
Value = GetRequest(Name)
Name - Required text that is the Name part in a Name/Value pair in the visitor's request.

Remarks
For most cases, this is just the same as using the Request collection directly like this. Value = Request(Name)(1) The difference is when Name is not found or Name has more than one Value. If Name is not in any Name/Value pair, then GetRequest returns an empty string. If multiple Name/Value pairs match, then GetRequest returns a comma delimited list of Values.

GmtDate

Returns a date and time in Greenwich Mean Time specially formatted for use in HTTP.
Syntax
TextOut = GmtDate(LocalDate, HourOffset)
Part
Description
LocalDate Required date and time in VB Date format.
HourOffset Required number of hours between the local time zone and Greenwich Mean Time. Negative (-) is for the US and positive (+) is for Japan. Eastern US is -5.


Remarks
This function does not figure out Daylight Savings Time. Standard Time should be close enough.

Note: This command is called by the SetCookie command.


Copyright 1997 NEWMAN Services Corp. All rights reserved.
973-228-5753 pres@newmanservices.com