PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
Aula 993 - WinDev - Array - 005 - Seek
Aula 993 - WinDev - Array - 005 - Seek
Started by amarildo, Dec., 11 2016 3:06 PM - No answer
Connect yourself…
amarildo
#1
Registered member
535 messages
Popularité : +14 (14 votes)
Posted on December, 11 2016 - 3:06 PM
//Vou ensinar como Procurar um valor dentro array
tab
Listanumeros is
array of
0
int
ArrayAddLine
(
tab
Listanumeros
,
10
)
ArrayAddLine
(
tab
Listanumeros
,
5
)
ArrayAddLine
(
tab
Listanumeros
,
3
)
ArrayAddLine
(
tab
Listanumeros
,
1
)
EDT_
Texto
=
ArrayToString
(
tab
Listanumeros
)
//Procura
n
_procura is
int
=
Seek
(
tab
Listanumeros
,
asLinearFirst
,
EDT_
PROCURA
)
IF
n
_procura
=
-
1
THEN
EDT_
resultado
=
"Nao Achou"
ELSE
EDT_
resultado
=
"Achou"
END
//
http://doc.windev.com/en-US/…
http://windevdesenvolvimento.blogspot.com.br/2016/12/aula-993-windev-array-005-seek.html
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text