Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Findout none empty textbox
Message
From
14/12/2006 02:41:56
 
 
To
13/12/2006 23:20:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01177475
Message ID:
01177495
Views:
7
>Dear Experts,
>
>I have 20 textboxes on form.
>only one textbox has data, all other 19 textbox are empty.
>
>Textbox name are text1---text20.
>
>How to findout which textbox is not empty?
>
>Pleaes help

Something like this, not tested, and you may have to tweak it.
local lcDummy
for x=1 to 20
  lcDummy='yourform.text'+trans(x)+'.value'
  if empty(eval(lcDummy))
    messagebox(yuststem(lcDummy)+' is empty')
  endif
next
NB! I am not debuggung this for you, I only want to help you in the right direction.
Previous
Reply
Map
View

Click here to load this message in the networking platform