Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3027

Finding size of a database field

$
0
0
I am writing in C++ using Visual Studio 2015. The program question takes data from a user and stores parts of his input as text fields in an Access database. I want to know the capacity of the database field: say it’s TEXT(75), I will warn the user if the data submitted for stage in that field exceeds 75 characters. I have a class generated from the table, is there any way, if I open either the table class, or the underlying database, I can use a C++ function on one of the classes to tell me the size. As if I were doing:
long max=database(“databasename”).table(“tablename”)
.field(“stringfieldname”).GetMaxSize();

Viewing all articles
Browse latest Browse all 3027

Latest Images

Trending Articles



Latest Images