Information générale
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
as the code above shows, the DB it seems to be placed in the same folder that the aplication is placed. in this case what you are declaring here is the conection to that Database and as the code could say for itself,
the DataBase is in the same folder of the Application, look there man, is has to be there!
now for your second question: (by the way, don't put more than one question in a thread, that is not allowed here)
(2). Is there a way that would tell me if the object on a form is a label,textbox,checkbox etc. (Like vfp class)
Yes it is, Friend!, Visual Basic has everything you need to make dreams come true! here's the snnipet friend:
'let's say you want to erase all the content of different text boxes on a form, but you don't want to create
'a code that set the text property of each of the textbox controls to "" separately,
'(and you dont' have to by the way). well here is where our friendly function TypeName()
'come to the stage and save our day:
Private Sub cmdErase_Click()
Dim t As Control
For Each t in Me.Controls
If TypeName(t) ="TextBox" then
t.Text =""
End If
Next
End Sub
' I use Me instead of the name of the form in which you will set this code,
' Me is something like This in Fox Pro :0)
'That is all Friend, now Enjoy yourself and put an smile on it! Peace!
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement