English
Forum

Problems with Parameters?

 

Nico
Madysa
Hallöchen together,
so, i don't know whether the my Error or of/ one of XProfan is, but at program have I the following trouble found.
CompileMarkSeparation
declare name$

proc DataName

    parameters tdatei$
    declare te% , tteil$
    te% = 1

    repeat

        tteil$=SubStr$(tdatei$,te%,"\")
        inc te%

    until (SubStr$(tdatei$,te%,"\") = "")

    return tteil$

endproc

proc open

    parameters ppfad$

    if ppfad$ <> ""

        name$ = DataName(ppfad$)

    endif

endproc

cls
open LoadFile$("Öffne ...","Alle Dateien|*.*")
end

in the Interpreter happened to the code nothing. If I against it whom code compiliere and the EXE ausführe, I get a saftige Error Message because of To few Parameters and the program fractures with
name$ = DataName(ppfad$)
ex.

here's a small Änderung:
CompileMarkSeparation
declare name$

proc DataName

    parameters tdatei$
    declare th% , tteil$
    th% = 1

    repeat

        tteil$=SubStr$(tdatei$,th%,"\")
        inc th%

    until (SubStr$(tdatei$,th%,"\") = "")

    return tteil$

endproc

proc open

    parameters ppfad$

    if ppfad$ <> ""

        name$ = DataName($(1))

    endif

endproc

cls
open LoadFile $("Öffne ...","Alle Dateien|*.*")
end

How your quick notice have, have I ppfad$ simply through $(1) supplant. and:
as EXE functions everything!
has there someone a simple Statement?

P.s.: still have I this time same the Work-Around glech self found.

EDIT:
an small Note - DataName never mind other as whom last part the Pfades abzuschneiden and zurückzugeben (this is in this drop The selected File).
 
Nico Madysa
03/17/06  
 



I sustain with Your oberen code no Fehlermeldungen.

Perhaps lying it on it the by me the XPSE superfluous characters removes.
 
03/17/06  
 




Nico
Madysa
have you got it as EXE probiert or only with the Interpreter?
 
Nico Madysa
03/17/06  
 



The Guest ebend, the i was - my Session was well ausgelaufen. I have any 3 Modi durchprobiert.
 
03/17/06  
 




RGH
Hi,

means by me runs it in the Interpreter and as Exe-File completely free from problems! (too without XPSE!)

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
03/17/06  
 




Nico
Madysa
now well, I habs under Win95 ausprobiert (be strain in the MM-cabinet of Lautech). To dwell (Win98) gabs bishr no Error. I fands only strange, that here(Win95) $(1) works and ppfad$ not.

@iF : Dass You the Guest are, Have I me already virtual.
 
Nico Madysa
03/17/06  
 




Dietmar
Horn
I sat in the cabinet next to Nico, as it whom beschriebenen bow noticed. this Error trod not only on Rechnern with Win 95 on, separate on PC with Win 98.

Greeting
Dietmar
 
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
03/17/06  
 




Nico
Madysa
These thing power me crazy!
home (Win98) klappen $(1) and ppfad$ free from problems as code and EXE,
in the Lautech(Win98) works $(1) always and ppfad$ only Interpreter.
Hä???
 
Nico Madysa
03/27/06  
 




Jac
de
Lad
Probiers time with ppfad$ instead of $(1) and individual Backslashes (instead of \)!

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
03/27/06  
 




RGH
[quote:f5999bea12=Nico Madysa]These thing power me crazy!
home (Win98) klappen $(1) and ppfad$ free from problems as code and EXE,
in the Lautech(Win98) works $(1) always and ppfad$ only Interpreter.
Hä??? [/quote:f5999bea12]
are You sure, that You on both Örtlichkeiten Thesame Version of (X)Profan using?
in the Zweifelsfalle would I it there, where it Problems power, time new install (let).

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
03/27/06  
 



The Bugnity-Rubrik is only for definitive Error, not for guesses.

Thread watts moved.
 
03/27/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.179 Views

Untitledvor 0 min.
H.Brill08/01/23
RICOSCH11/04/11

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