Can any body help me on how to get the Control Types in a Dialog.
Ex: I have some SAYS, GETS, RADIO BUTTONS, COMBO and BROWSE
controls on a Dialog. And I want to know the type of the current Control one which the user has clicked/pressed Enter Key.
TIA
Regards,
- Ramesh Babu P
How to get the Control Types in a Dialog?
- RAMESHBABU
- Posts: 591
- Joined: Fri Oct 21, 2005 5:54 am
- Location: Secunderabad (T.S), India
-
- Posts: 108
- Joined: Sun Oct 09, 2005 6:12 pm
- Location: Mar del Plata - Argentina
- Contact:
-
- Posts: 67
- Joined: Thu Jan 05, 2006 10:35 pm
- Location: Canada
- Contact:
Just A sample of what I do
for x = 1 to len(odlg:acontrols)
classn = odlg:acontrols[x]:classname()
default classn:="\\"
if classn <> "\\"
if classn <> "TGET"
if classn <> "TWBROWSE"
aadd(items,{odlg:acontrols[x]:classname(),;
odlg:acontrols[x]:nid,;
odlg:acontrols[x]:hidden,;
oDlg:aControls[x]:ctitle,x})
ELSE
FOR Y = 1 TO LEN(oDlg:aControls[x]:aheaders)
TXT=TXT+RTRIM(oDlg:aControls[x]:aheaders[Y])+"|"
NEXT
aadd(items,{odlg:acontrols[x]:classname(),;
odlg:acontrols[x]:nid,;
odlg:acontrols[x]:hidden,;
TXT,x})
ENDIF
endif
endif
next
classn = odlg:acontrols[x]:classname()
default classn:="\\"
if classn <> "\\"
if classn <> "TGET"
if classn <> "TWBROWSE"
aadd(items,{odlg:acontrols[x]:classname(),;
odlg:acontrols[x]:nid,;
odlg:acontrols[x]:hidden,;
oDlg:aControls[x]:ctitle,x})
ELSE
FOR Y = 1 TO LEN(oDlg:aControls[x]:aheaders)
TXT=TXT+RTRIM(oDlg:aControls[x]:aheaders[Y])+"|"
NEXT
aadd(items,{odlg:acontrols[x]:classname(),;
odlg:acontrols[x]:nid,;
odlg:acontrols[x]:hidden,;
TXT,x})
ENDIF
endif
endif
next
- RAMESHBABU
- Posts: 591
- Joined: Fri Oct 21, 2005 5:54 am
- Location: Secunderabad (T.S), India