Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

data types with configured textbox do not match

Status
Not open for further replies.

iara84

Systems Engineer
Oct 25, 2022
13
CO
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 ThisForm.TxtNomCli.Value, direccion With ThisForm.TxtDirec.Value, telefono With ThisForm.TxtTele.Value
thisform.release

I have both textboxes configured so that the format is numeric
first textbox
inititele_fmmxwi.jpg
telefo_fxxxff.jpg


second textbox
initident_rjstxl.jpg
ident_tasiec.jpg


this is the code of the project

 
telefono = Thisform.textTele.value = 0

That is the same as telefono = (Thisform.textTele.value = 0)
Which is the same as telefono = .t. (or .f.)
Which is in turn rubbish.
 
At first glance, 3 possible suggestions:

1. Make the Format property 9 instead of 999999.

2. Put (or confirm) a semicolon (;) at end of line 3 to insure line 4 is a continuation of line 3.

3. Can fields accommodate InputMask 9999999 as input?

Ok?

Steve
 
I announced to not answer anymore.

The more posts you have with very specific problems that are not usual beginner errors, the more I think this is all on purpose, and one more reason to stay silent. I give you a hint: Somebody else already understood what happens and what you'd never expect to happen. It shows once more how you didn't read the advice I already gave you, so it's still futile to actually even just try to help you. In my opinion, you're trolling the forum, but even in dubio pro reo the help you get does not get to you.

Chriss
 
Well, I actually thought it may just be me. It's anybody's personal decision, there may be a lot of language barrier problems, not only between JS and VFP but Spanish and English. I don't know. To me, it's just not worth trying to get through.

Chriss
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top