View previous topic :: View next topic |
Author |
Message |
HGsOFT Newbie
Joined: 14 May 2003 Posts: 19 Location: Netherlands
|
Posted: Thu Aug 07, 2003 2:20 pm Post subject: |
|
|
Ik ben er uit je moet gewoon met deze code beginnen aan het begin van je CHILDDIALOG
Code: | OPTION ERRORTRAP,CHILD1_ERRORTRAP |
Maak een label CHILD1_ERRORTRAP en geef een WARN message.
En dan ga je weer naar GOTO CHILD1_EVLOOP en de fout melding is weg.
m.v.g
H. Gerrlich |
|
Back to top |
|
|
addictive Newbie
Joined: 06 Sep 2003 Posts: 7 Location: The Netherlands
|
Posted: Sat Sep 06, 2003 12:32 pm Post subject: |
|
|
Hallo,
Door vic ben ik op deze sitye terecht gekomen, en nu wil ik graag weten hoe ik het beste VDS kan leren.
groeten,
Mick |
|
Back to top |
|
|
Vic D'Elfant Past Contributor
Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Sat Sep 06, 2003 1:31 pm Post subject: |
|
|
Hoi Mick,
ik heb het me geleerd door gewoon... te gaan klooien .
Voor vragen kun je altijd hier terecht.
Groetjes,
Vic _________________ phpBB Development Team |
|
Back to top |
|
|
addictive Newbie
Joined: 06 Sep 2003 Posts: 7 Location: The Netherlands
|
Posted: Sat Sep 06, 2003 1:53 pm Post subject: |
|
|
Vic wrote: | Hoi Mick,
ik heb het me geleerd door gewoon... te gaan klooien .
Voor vragen kun je altijd hier terecht.
Groetjes,
Vic | oké, bedankt.
gr. Mick |
|
Back to top |
|
|
HGsOFT Newbie
Joined: 14 May 2003 Posts: 19 Location: Netherlands
|
Posted: Tue Sep 09, 2003 6:18 pm Post subject: Open een file |
|
|
Hallo, Skit
Je kan een file met het commando @filedlg openen.
Maar nu wil ik zelf bepalen in welke map hij begint.
Ik heb al in het register gekeken maar hier kom ik niet uit.
Code: | %%openfile = @filedlg("BRB (*.kbg)",Open File) |
Dit is het commando wat ik gebruik.
Weet jij of iemand anders een oplossing?
m.v.g
Horst |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
HGsOFT Newbie
Joined: 14 May 2003 Posts: 19 Location: Netherlands
|
Posted: Wed Oct 29, 2003 5:40 pm Post subject: |
|
|
Hallo Skit,
Ik heb een programma gemaakt met 2718 lines, het programma werkt
als ik het in visual dialogscript test.
Maar als hij gecompileerd is werkt het programma niet goed.
Ik heb het idee dat de run "time" in visual dialogscript langzamer is
dan wanneer het programma gecompileerd is.
Weet jij hier een oplossing voor.
m.v.g
H. Gerrlich |
|
Back to top |
|
|
Vic D'Elfant Past Contributor
Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Wed Oct 29, 2003 6:35 pm Post subject: |
|
|
Dat klopt, de IDE van VDS is trager als wanneer het script compiled is, maar ik zou niet weten waarom de het programma dan niet loopt...
Geeft het programma errors bij het uitvoeren of sluit het ineens af?
Groetjes,
Vic _________________ phpBB Development Team |
|
Back to top |
|
|
HGsOFT Newbie
Joined: 14 May 2003 Posts: 19 Location: Netherlands
|
Posted: Thu Oct 30, 2003 11:24 am Post subject: |
|
|
Hallo Vic,
Het probleem is al opgelost.
Het programma blijkt in een sub routine te zitten, het beeld knippert een
paar keer en loopt dan vast.
Code: | OPTION sleeptime,100 |
Met deze code heb ik hem wat trager laten lopen standaart is het 50ms.
Het probleem was ook teveel sub routines achter elkaar inclusief berekeningen.
m.v.g.
H. Gerrlich |
|
Back to top |
|
|
easy rider Valued Newbie
Joined: 10 Sep 2001 Posts: 26 Location: Netherlands
|
Posted: Sun Jan 11, 2004 9:26 pm Post subject: list cq table element |
|
|
Hoi,
Na dik 1,5 jaar maar weer eens met vds begonnen. En meteen een vraagje. In een progje gebruik ik het table element. Als ik nu iets wil zoeken in deze lijst wat ik erin laadt (met de @match() functie) dan gaat dit in zoverre goed, zei 't niet dat ik dan zelf omlaag moet scrollen in de lijst om het gevonden item te zoeken. Bij het gebruik van het list element hoeft dit nl niet, deze laat meteen de juiste plaats zien.
Is hier e.e.a. oplossing voor.
Hopelijk is e.e.a duidelijk.
grtz Rene |
|
Back to top |
|
|
Vic D'Elfant Past Contributor
Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Mon Jan 12, 2004 9:08 am Post subject: |
|
|
U zou iets als dit kunnen gebruiken:
Code: |
# Lijst met data
list create, 1
# Datalijst overzetten naar het table element
list assign, 1, table1
%T = @match(1, MijnText)
list seek, table1, @index(1)
|
Ik weet alleen niet zeker of dit is wat u bedoelt
Vic _________________ phpBB Development Team |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Mon Jan 12, 2004 2:52 pm Post subject: |
|
|
Volgens mij zou dit dan ook moeten werken...
Code: |
%T = @match(table1, MijnText)
list seek, table1, @index(table1) |
|
|
Back to top |
|
|
easy rider Valued Newbie
Joined: 10 Sep 2001 Posts: 26 Location: Netherlands
|
Posted: Mon Jan 12, 2004 10:51 pm Post subject: |
|
|
Bedankt voor jullie moeite, maar dat was niet helemaal de vraag. Kijk naar het script hieronder. Als je op zoek klikt en je kiest voor de 10, dan wordt in het list element automatisch naar onder gescrolled naar de 10 en in het table element niet. Het is dus de bedoeling dat dit ook in het table element gebeurt.
grtz Rene
Code: | Title CD collectie
DIALOG CREATE,CD Collectie,-1,0,370,280
DIALOG ADD,MENU,&Bestand,&Afsluiten
DIALOG ADD,GROUP,GR1,-1,0,410,2
DIALOG ADD,BUTTON,BUTTON1,10,10,64,20,Zoek:
DIALOG ADD,TABLE,T1,35,10,350,100,Artiest[100]|Album[100]|Medium[60]|Volume[60],,SORTED,COLUMNSORT
DIALOG ADD,LIST,L1,145,10,350,100
DIALOG ADD,STATUS,ST1,[120]|
DIALOG SHOW
list add,l1,1
list add,l1,2
list add,l1,3
list add,l1,4
list add,l1,5
list add,l1,6
list add,l1,7
list add,l1,8
list add,l1,9
list add,l1,10
list seek,l1,0
list assign,t1,l1
:Evloop
wait event
goto @event()
:BUTTON1BUTTON
%M = @input(geef een zoekwoord,10)
if %M
if @match(T1,%M)
dialog focus,T1
list seek,l1,@index(t1)
else
info %M niet gevonden!
end
end
goto evloop
:Afsluitenmenu
:Close
end
exit
|
Aangepast door een Site Team lid; nu gebruikt deze post de [code:1:56a0848468] bbcode tag |
|
Back to top |
|
|
Vic D'Elfant Past Contributor
Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Wed Jan 14, 2004 10:14 am Post subject: |
|
|
Hmm...
probeer eens met "list seek, t1, 0" voor de @match functie... Ik zou anders ook niet weten wat er mis gaat
Code: |
Title CD collectie
DIALOG CREATE,CD Collectie,-1,0,370,280
DIALOG ADD,MENU,&Bestand,&Afsluiten
DIALOG ADD,GROUP,GR1,-1,0,410,2
DIALOG ADD,BUTTON,BUTTON1,10,10,64,20,Zoek:
DIALOG ADD,TABLE,T1,35,10,350,100,Artiest[100]|Album[100]|Medium[60]|Volume[60],,SORTED,COLUMNSORT
DIALOG ADD,LIST,L1,145,10,350,100
DIALOG ADD,STATUS,ST1,[120]|
DIALOG SHOW
list add,l1,1
list add,l1,2
list add,l1,3
list add,l1,4
list add,l1,5
list add,l1,6
list add,l1,7
list add,l1,8
list add,l1,9
list add,l1,10
list seek,l1,0
list assign,t1,l1
:Evloop
wait event
goto @event()
:BUTTON1BUTTON
%M = @input(geef een zoekwoord,10)
if %M
# List weer terug op nul zetten
if @not(@zero(@count(T1)))
list seek, T1, 0
end
if @match(T1,%M)
dialog focus,T1
list seek,l1,@index(t1)
else
info %M niet gevonden!
end
end
goto evloop
:Afsluitenmenu
:Close
end
exit
|
Groetjes,
Vic _________________ phpBB Development Team |
|
Back to top |
|
|
easy rider Valued Newbie
Joined: 10 Sep 2001 Posts: 26 Location: Netherlands
|
Posted: Wed Jan 14, 2004 2:21 pm Post subject: |
|
|
Tja Vic,
ook dit werkt niet, waarschijnlijk is het niet mogelijk dat het table element niet automatisch kan scrollen naar de juiste waarde, beetje vreemd vind ik wel. Zeker als je een lijst hebt van 1000 of meer items.
toch bedankt voor de moeite.
grtz rene |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|