English
Forum

Save-dialog trouble

 
- Page 1 -



liveFamilie
Hi,
I had time again something Time to that reading and try.
I wanted to a Save dialog make and I me The Examples angeschaut and ausprobiert but nothing works so correctly..
with this Examples from MMJ-Source, manuals and HilfeDatei :
name$ = @SaveFile$("Datei speichern","Normal (.txt)|*.txt")

Hierbei appear no Window, it happens quite nothing by me.
name$ = @SaveFile$("Datei speichern","Test.txt")

Hierbei appear the window, I can a names enter and on OK clicking, but if I then nachschaue is no File created been.

where is Please beautiful my fallacy ?
i want only whom Save-dialog Call, a Filenames prompt (default ought to txt his) and if I on Save/OK go, ought to a File created go.
Please in Profan V8, for Notes would I grateful.

Greeting
Toni
 
XProfan 8
"Profan das Besondere"
was auch in einem gewissen Alter noch Spass macht und Fit hält.
03/28/12  
 



« this Posting watts as Solution marked. »


liveFamilie
Hi,
@Nico and Dieter

Yes with euren both Solutions be I again a small step moreover. THANK YOU

@Dieter
That the V9.1 I had of course already red, I but not so often Internet be, I had it again verdrängt.
For this was then today time one day the whole Program updates.
but tested whether everything yet so is as was, moreover be I not yet come.

too here thanks for my vergesslichkeit, the old can greet.

Toni
 
XProfan 8
"Profan das Besondere"
was auch in einem gewissen Alter noch Spass macht und Fit hält.
03/29/12  
 




Julian
Schmidt
the commands functions just as, How it ought to!
it prepares a dialog to selection one Dateipfades, and gives whom way to the electoral back. subsequently can you whom way in your Program process, about a File this create o.ä..
See in the Help SaveFile.
 
XProfan X2
Win7 Home Premium, SP1, AMD Athlon(tm) II Neo K125 Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/28/12  
 




Nico
Madysa
Hello Toni,

I try time, on both ask einzugehen.

liveFamilie (28.03.12)
name$ = @SaveFile$("Datei speichern","Normal (.txt)|*.txt")

Hierbei appear no Window, it happens quite nothing by me.


Try still please times, whom subesquent View source from and say me, whether a Choose-Dialog appear:
cls
declare name$
name$ = SaveFile$("Datei speichern","Normal (.txt)|*.txt")
end

by me functions it namely free from problems.

liveFamilie (28.03.12)
where is Please beautiful my fallacy ?
i want only whom Save-dialog Call, a Filenames prompt (default ought to txt his) and if I on Save/OK go, ought to a File created go.
Please in Profan V8, for Notes would I grateful.


your fallacy lying therein, that You with SaveFile$() only the User The Possibility bid, itself auszusuchen, where The File stored go should.

For this, that they then too objectively stored becomes, have you got as Programmer worry To carry.

How You there best vorgehst, depends of it ex, what You Save want.
One Image can you with
SavePic Dateiname$, PicHandle&

Save, a Textdatei can you on The following point Save:
'the lever fileHandle& serves the Access to The File
fileHandle& = Assign(Dateiname$)
'Erstelle a new File. if already a exists, lösche tappt im dunkeln:
Rewrite fileHandle&
'Wirf everything, what You in the Textdatei stand having want, by print into
print fileHandle&, "Das is my Textdatei"
print fileHandle&, superWichtigerText$
'subsequently must The File closed go
Close fileHandle&

I hope, I could help.
 
03/28/12  
 




liveFamilie
Hello Nico,

if I your suggested code use (or whom of me ausprobierten) appear zero comma quite nothing.
I own 3 PC's with XP, Vista and 7 on all have I Profan 8 (because of the Compiler) on it.
it blinkt only time short one Window on and is immediate again lane, setting I to End one Waitinput, appear only the window of what CLS created becomes.
use I a höhere Profan Version then works it with the Window, but this is Yes not my desires.
Klappt it because with you too with the V8 and nothing höherem ?

@Julian
I have plenty red too under Help (under SaveFile) but unfortunately nothing genaues found.
therefore have I Yes decided time here circa council and Help search.

but I get under V8 Yes not yet once the window there (see Text Nico).

Greeting
Toni
 
XProfan 8
"Profan das Besondere"
was auch in einem gewissen Alter noch Spass macht und Fit hält.
03/29/12  
 




Dieter
Zornow
Teste time this code, the runs by me with Profan 8 under Win 7 64bit correct.
it'll one Textdatei abgespeichert.
CLS
Declare name$
Name$ = SaveFile$("Datei speichern","*.txt")

If name$ <> ""

    assign #1,name$
    rewrite #1
    print #1,"Das is a Test"
    close #1

endif

waitinput

but Why using You not the new Freewareversion 9.1 The now of Rolands Page downloadable is.
 
XProfan X2
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
03/29/12  
 




liveFamilie
Hi,
@Nico and Dieter

Yes with euren both Solutions be I again a small step moreover. THANK YOU

@Dieter
That the V9.1 I had of course already red, I but not so often Internet be, I had it again verdrängt.
For this was then today time one day the whole Program updates.
but tested whether everything yet so is as was, moreover be I not yet come.

too here thanks for my vergesslichkeit, the old can greet.

Toni
 
XProfan 8
"Profan das Besondere"
was auch in einem gewissen Alter noch Spass macht und Fit hält.
03/29/12  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

12.970 Views

Untitledvor 0 min.
Jochen Roxlau04/14/15
E.T.11/06/14
Uwe Lang09/16/13
mein06/02/13
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie