Jump to content
Fórum Script Brasil
  • 0

Funções


slipknot

Question

ola tenho essa função em VB6 e quero que ela retorne um valor booleano para uma variavel que está chamando ela...o valor será retornado dependendo da resposta do if...

global bl_resp as boolean
bl_resp = VerificaCampos Me
Public Function VerificaCampos(my As Form) As Boolean
    For int_x = 0 To (my.Count - 1) Step 1
        If my(int_x).Tag <> "" Then
            If my(int_x).Text = "" Then
                'aqui eu quero retornar o valor
            End If
        End If
    Next int_x
End Function

como consigo fazer o retorno...não sei coomo funciona o RETURN do VB...=(

grato...

abraços...

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Coloca assim:

nome_da_funcao = retorno

ou seja,

VerificaCampos = true

ou

VerificaCampos = false

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.1k
    • Total Posts
      652k
×
×
  • Create New...