|
-
Mar 13th, 2002, 04:31 PM
#1
Thread Starter
Hyperactive Member
There has to be a better way
In VB6, if I wanted to check that data had been entered into a field I would say something like If Textbox1.text = "", then I knew there was nothing entered.
In VB .Net, I ended up writing this:
If Instr(Ltrim(Textbox1.text), " ") = 0 then there was nothng there, but even that solution is half baked as if the box is filled completely, then it won't work, anyone got any better ideas???
The other alternative was to compare it exactly to the number of spaces between quotes but that seems very messy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|