Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
13 user(s) are online (7 user(s) are browsing Forums)

Members: 0
Guests: 13

more...

Support us!

Headlines

 
  Register To Post  

Request for help with PortablE code
Not too shy to talk
Not too shy to talk


See User information
Hi everyone,

I'm hoping someone can tell me what I'm doing wrong with this PortableE code. When I compile it, I get an error:

ERROR: parameter of incorrect type
LINE 19: IF InStr(file,'.lha') <> -1
Hint: parameter has type ARRAY OF CHAR, expression has type VALUE.

I'm guessing its some kind of type error, but I don't know what it should be.

/* Scan Dir*/

OPT POINTERPREPROCESS

MODULE 
'std/cGui''std/cPath'

DEF dir:STRING
DEF file
:ARRAY OF CHAR
DEF info
:ARRAY OF CHAR


PROC main
()
  
dir := ImportDirPath('Misc:Downloads/DLM_Archive')
  
RecurseDir(dir,ProcessFile)
ENDPROC

FUNC ProcessFile
(fileOF funcRecurseFile
      
Print('Found File: \s\n',file)
      IF 
InStr(file,'.lha') <> -1
        
Print('Is an lha.\n')
     ENDIF
ENDFUNC


Thanks for any help.

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project