| dbReset |
Reset the following data of the unit:
| GridPtr | Grid pointer |
| FormPtr | Form pointer |
| Querstring Variable | |
| aspEditBut | |
| aspDBSchemaSelectBoxItem | |
| aspDBGridSelectBoxItem | |
| gridSort | FieldName sort |
| FormCol | 1 |
| GrdiCol | 1 |
| Filter SQL | |
| PageSize | GridInc |
| Sort Direction | ASC |
| DisplayLookup | |
| GridSelect |
During ASPdb programming, sometime it is necessary to clear all the system variables especially during the re-entrance of the same module. That means instead of flowing from one module to the next, the program logic calls for using the same module by modifying some of the properties. Note that all the variables of the modules are separated by the unit number. Therefore, it is not necessary to reset if a different unit number is used !
| Property Syntax |
Obj.dbReset(Unit)
| Example |
Run Reset-1.asp and select a country. The submit button will pass the country to the Reset-2.asp to build the query.
| File = Reset-1.asp
<HTML> |
| File = Reset-2.asp
<HEAD><title>ASP-db2000 NWIND dbReset Demo </title></HEAD> |