Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print/Save File
Message
De
04/08/1999 10:05:02
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
03/08/1999 17:26:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00248310
Message ID:
00249716
Vues:
29
>Hey John,
> I'm having problems trying to get my putfile to fire off. When I step through the following code, I see that the value I'm sending as a result of putfile command line is capturing the entire path. Is my syntax incorrect?
>
>IF MESSAGEBOX ("Do you wish to save this record?" , 4 + 32 + 0, "Save CDC Id" ) = 6
> G_TmpFile = PUTFILE('Save CDC Id As..',G_TmpFile, 'Txt;Dbf;Xls')
> SET STEP ON
> DO CASE
> CASE G_TmpFile = G_TmpFile + '.Xls'
> COPY TO G_TmpFile TYPE XLS
> CASE G_TmpFile = G_TmpFile + '.Dbf'
> COPY TO G_TmpFile TYPE FOX2X
> ENDCASE
>ELSE
> ThisForm.Btn_Create.VISIBLE = .T.
>ENDIF

Are you sure the " G_TmpFile = G_TmpFile + '.Xls'" expression will ever evaluate to .t.? You may be better off with FoxTools function JustExt:

Case lower(justext(g_TmpFile))="xls"

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform