BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Scripts
 Non trovo l'errore ...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Revenge
Starting Member

6 Posts

Posted - 05 Jun 2008 :  20:10:26  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Lavorando sul codice degli script con ottimi risultati, sono incappato gia' un paio di volte in un errore di cui non trovo spiegazione.

In particolare per implementare correzioni tipo il titolo TRAMA LUNGA in cinematografo.it

#PLOT#
#PUT#=0#16#
#STARTREADWEB#
#PUTCURSOR#=#10#
#FINDLINE#=TRAMA LUNGA<#12##ONERROR#=*OK*
#FIND#=TRAMA LUNGA<#12##ONERROR#=*OK*
1- #IF# #12#<>#16#
2- #FIND#=>#01##ONERROR#=*OK*
3- #FIND#=Critica<#02##ONERROR#=*OK*
4- #IF# #02#==#16#
#TAKEWORD#=#03#,#01#,#00#
#ENDIF#
#IF# #02#<>#16#
#TAKEWORD#=#03#,#01#,#02#
#ENDIF#
#GOTO#=ENDTAKEPLOT
#ENDIF#
#SETCURSOR#=#10#
#FINDLINE#=Trama<#12##ONERROR#=*OK*
#FIND#=Trama<#12##ONERROR#=*OK*
#FIND#=>#01##ONERROR#=*OK*
#FIND#=
#02##ONERROR#=*OK*
#TAKEWORD#=#03#,#01#,#02#
:ENDTAKEPLOT
#CHECKVARIABLE#=#03#
#STARTSUBSTITUTETAGS#
#CLEARTAGS#
#TRIM#
#STARTDELETETAGS#
#TAKEPLOT#=#03#
#ENDPLOT#

alla valutazione della riga 1 anche se #12# = 0 entra nel if e passa alla riga 4 saltando la 2 e la 3 ... mistero ...

Vedete un errore o piu' di uno ?
Probabilmente mi sono bevuto il cervello ...


Revenge
Starting Member

6 Posts

Posted - 02 Nov 2008 :  13:02:43  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sempre per Alessio ...
Scusa, ma per farsi dare una mano cosa devo fare ?
Go to Top of Page

Alessio Viti
Forum Admin

Italy
9171 Posts

Posted - 04 Nov 2008 :  13:52:13  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Ciao,

Scusami davvero per il ritardo!

Allora, il problema, a occhio, č che hai "nidificato" 2 istruzioni IF

Purtroppo non puoi nidificare pių IF, quando ne fai una devi per forza fare una ENDIF prima di farne un'altra.

Puoi usare le istruzioni GOTO per saltare da una parte all'altra.

Ciao!

Ale

http://www.facebook.com/pages/eXtreme-Movie-Manager/47220214342?ref=mf
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.11 sec. Powered By: Snitz Forums 2000 Version 3.4.07