Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a VFP function to...
Message
 
À
28/06/2006 09:35:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01132372
Message ID:
01132377
Vues:
14
You could try to use FSIZE() function
IF FSIZE("source_in_question") = 0
* this in not a field
>I've been looking for a VFP function or a UDF that will allow me to determine if an object's control source refers to either a column in a cursor/table or to a memory variable. If it refers to a column I need to do a REPLACE command to update the column. If it refers to a memory variable I need to replace the value in the variable. Something like this is what I'm looking for:
>
> IF OBJTYPE(Object.ControlSource) = 'C'
> REPLACE (Object.ControlSource) WITH ltNewDateTime
> ELSE
> STORE ltNewDateTime TO (Object.ControlSource)
> ENDIF
>
>Thanks!!!
>Jim
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform