Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saber se listbox esta habilitado
Message
From
18/06/2003 10:36:41
Fernando Oliveira
JMS Assessoria e Consultoria
Belo Horizonte, Brazil
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00800930
Message ID:
00801164
Views:
15
Olá Fabiano
Veja a 'Marretinha' que fiz para este problema:
lcValores = thisform.list1.RowSource
lTamanhoTotal = LEN(lcValores)
if(LEFT(lcValores,1)=='\')
MESSAGEBOX("Item 1 desabilitado")
endif

lcValoresAnteriores = SUBSTR(lcValores,1,ATC(",",lcValores))
lnTamanhoAnteriores = LEN(lcValoresAnteriores)

FOR i = 0 TO thisform.list1.ListCount
lcAtual = SUBSTR(lcValores,lnTamanhoAnteriores + 1,IIF(ATC(",",SUBSTR(lcValores,lntamanhoAnteriores+1))>0,ATC(",",SUBSTR(lcValores,lntamanhoAnteriores+1)),lTamanhoTotal))
if(LEFT(lcAtual,1)=='\')
MESSAGEBOX("Item "+ TRANSFORM(i+2) + " está desabilitado.")
ENDIF
lcValoresAnteriores = SUBSTR(lcValores,1,lnTamanhoAnteriores + LEN(lcAtual))
lnTamanhoAnteriores = LEN(lcValoresAnteriores)
ENDFOR

Espero que lhe seja útil,
[],
Fernando de Oliveira
Previous
Reply
Map
View

Click here to load this message in the networking platform