WartookMan
Technical User
I have searched Google. I have searched multiple groups on Tek-Tips... but without success.
I would like to retrieve a field's "Field Size" property using ASP. Is this possible? I want to be able to use it as a first-line trap, to set the "MAXLENGTH" attribute of an INPUT field on an HTML form.
I have managed to access a field's "Description" Property, and whether it can be Nullable or not, but not it's size. I have even tried outputting ALL Properties for all Fields for all Tables available, but there doesn't seem to be a Property for the size!
This was my code for the Properties available:
Any help / ideas would be most appreciated.
Pete.
Web Developer & Aptrix / IBM Lotus Workplace Web Content Management (LWWCM) Specialist
w: e: Pete.Raleigh(at)lclimited.co.uk
I would like to retrieve a field's "Field Size" property using ASP. Is this possible? I want to be able to use it as a first-line trap, to set the "MAXLENGTH" attribute of an INPUT field on an HTML form.
I have managed to access a field's "Description" Property, and whether it can be Nullable or not, but not it's size. I have even tried outputting ALL Properties for all Fields for all Tables available, but there doesn't seem to be a Property for the size!
This was my code for the Properties available:
Code:
Dim objTable, objColumn, objProp
For Each objTable in objADOXDatabase.Tables
If objTable.Type = "TABLE" then
Response.Write objTable.Name & "<br>"
For Each objColumn in objTable.Columns
Response.Write " " & objColumn.Name & " - " & objColumn.Attributes & "<br>"
For Each objProp in objColumn.Properties
Response.Write " " & objProp.Name & " - " & objProp.Value & " - " & objProp.Attributes & "<br>"
Next
Next
Response.Write "<p>"
End If
Next
Any help / ideas would be most appreciated.
Pete.
Web Developer & Aptrix / IBM Lotus Workplace Web Content Management (LWWCM) Specialist
w: e: Pete.Raleigh(at)lclimited.co.uk