Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print/Save File
Message
From
04/08/1999 10:05:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
03/08/1999 17:26:59
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00248310
Message ID:
00249716
Views:
20
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform