when creating a new client I always get. I have configured the two texts that are numeric so that it receives the data entered as numbers but the error continues to appear
save button code
SELECT customers
Append Blank
Replace identifica With ThisForm.TxtIdent.Value, nombre With...
I already modified the code of the delete button
SET DELETED ON
IF Messagebox( "Estás seguro?", 4 ) = 6
DELETE
ThisForm.txt
ThisForm.Refresh
ENDIF
remove from method txt scan and endscan
add in the release method this code
SELECT clientes
PACK
but it's still the same, it deletes the record...
This is the code for the delete button
SET DELETED ON
IF Messagebox( "Estás seguro?", 4 ) = 6
DELETE
ThisForm.txt
ENDIF
this is the code of the txt method
USE clientes IN 0 alias customers1
use clientes IN 0 again alias customers2
use clientes IN 0 again alias customers3
use clientes IN 0...
In the form1 in the first edit button I have this code
nombre1 = thisform.TxtNomCli1.Value
identifi1 = thisform.TxtIdent1.Value
direccion1 = thisform.TxtDirec1.Value
telefono1 = thisform.TxtTele1.Value
DO FORM "C:\Users\iarodriguez\Documents\Visual FoxPro Projects\Proyecto...
when creating a new customer record when saving data from form2, form1 is not updated.
this code is in the init of form1
USE clientes IN 0 alias customers1
use clientes IN 0 again alias customers2
use clientes IN 0 again alias customers3
use clientes IN 0 again alias customers4
USE clientes...
I must repeat this code for customers1, customers2, customers3 and customers4. the names of the fields also vary TxtNomCli1, TxtNomCli2, TxtNomCli3 and TxtNomCli4.
LOCATE FOR id=1
IF FOUND()
thisform.TxtNomCli1.text="customers1.nombre"...
It is possible that by means of the update and delete button it only affects one text box row. When a record is deleted, only the row where the button is located is affected?
For example, when the edit button of the first row is clicked, the information of this row is loaded in a second...
using the table with two different alias customers1 and customers2, how would I do so that from the tetxbox Thisform.TxtNomCli.ControlSource = "customers.name" to Thisform.TxtTele.ControlSource = "customers.phone" the first row of the table would be shown and from Thisform...
How to make the data shown in the textbox not be repeated if not the data that the table has
I have added the following code to the init of the form
Thisform.TxtNomCli.ControlSource = "customers2.name"
Thisform.TxtIdent.ControlSource = "customers2.identify"
Thisform.TxtAddress.ControlSource =...
From a main form, with a button I open the second form, this one has four text boxes.
In the init of the form second form add
with this form
.setall('enabled',.t.,'textbox')
.setall('enabled',.t.,'label')
end with
thisform.refresh()
when I open the second form using the button from the main...
The records of a data grid through a textbox and a button I search by name, identify, address and telephone by means using several filters but when searching I get the error operator/operand type mismatch. this is the code:
IF !EMPTY(THISFORM.Text1.Value)
SET FILTER TO
SET FILTER...
when i select the first row it doesn't show only the data of the first row, it shows all the data of the table in the second datagrid
main screen
update screen edit first row
Add the following property to the form in the Init
ADDPROPERTY(Thisform,"returnobj", null )
in the edit button add...
from a text box you enter the data to search for nombre,identifica,direccion and telefono by means of a button. The button is where I assign the search code, but it does not do the exact search, sometimes it works and other times it does not search according to the entered text.
SELECT...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.