Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Want to check the record status in VFP 6
Message
De
12/07/2004 07:59:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/07/2004 07:45:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00923228
Message ID:
00923249
Vues:
24
>Whoops, my mistake.
>
>If you specify -1 as the field it will return a string with all the field states concatenated, you can then just check for the existence of a 2 in the string.

2 or 4, depending on whether it is an existing record, or a new record. Another way is to check whether the string consists only of 1's.

>
>Hope that helps.
>
>Kev
>
>>using buffering mode 5.
>>
>>?GETFLDSTATE(Address)
>>Error -> "Variable "variable" is not found (Error 12)"
>>
>>?GETFLDSTATE("Address")
>>Error -> "Function argument value, type, or count is invalid (Error 11)"
>>
>>
>>
>>>>It solves my problem thanks a lot Kev.
>>>>it is posible that i can get it from the complete record not a field.
>>>
>>>Yes, you can specify
>>>
>>>
nStatus = GETFLDSTATE(tableAlias)
>>>
>>>If it returns 2 or 4 then you know an aspect of that record has changed, or it has been deleted/recalled.
>>>
>>>Kev
>>>
>>>>
>>>>>Have a look at GETFLDSTATE function.
>>>>>
>>>>>Kev
>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>I want to check the record status when i add or modify the record
>>>>>>in the table . Any function for this problem.
>>>>>>
>>>>>>thank in advance,
>>>>>>Mob
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform