Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_CUROBJ and valids
Message
De
09/04/1998 16:13:43
 
 
À
09/04/1998 16:02:16
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00090899
Message ID:
00090909
Vues:
29
I looked up OBJNUM() and _CUROBJ and I had the syntax right, it just didn't work. Here's an example of my code:

@ 3,29 GET staff.number ;
SIZE 1.000,13.167 ;
VALID valstaf() error errmess

READ valid valme()

procedure valstaf
ret = .t.
getno = _CUROBJ
if ";"$staff.number
errmess="Person's # may not contain semi-colon(;)"
ret = .f.
endif
return ret

procedure valme
ret = .t.
if "" = trim(staff.number) .and. fromhere <> 2
errmess="Person's # may not be blank"
ret=.f.
wait window errmess nowait
_CUROBJ = getno
else
ret = .t.
if (""= trim(staff.number) .or. isnew) .and. fromhere = 2
delete
endif
endif
return ret
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform