Jump to content


Photo

Fileexist Does Not Work In N6 Or Is It Just Me?


  • Please log in to reply
4 replies to this topic

#1 SumDumGuy3

SumDumGuy3

    X-S Young Member

  • Members
  • Pip
  • 53 posts

Posted 28 August 2004 - 02:25 AM

Hello All,

I am writing an action script and I ran into a problem with using SETFUNC with the FILEEXIST function. I tried everything I could think of. It would keep giving me an error saying (SelFunc) "Function Not Found" or something like that. I finally ended up trying FILESIZE which worked fine. I am trying to test for the existance of a folder, so if the folder is empty, I assume that filesize will fake me out. But it is the only thing I can get to work for now. Is this a known problem in n6 or am I doing something wrong or is this just a unnoticed bug?

Many Thanks for any help...
SumDumGuy



#2 flattspott

flattspott

    X-S Freak

  • Moderator
  • PipPipPipPipPip
  • 1,787 posts
  • Location:Southern California
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 01 September 2004 - 04:35 AM

QUOTE
(SelFunc)


is this a typo or does it really say that?

#3 SumDumGuy3

SumDumGuy3

    X-S Young Member

  • Members
  • Pip
  • 53 posts

Posted 01 September 2004 - 04:46 AM

hmmm, gonna have to retest that now... it should be setfunc shouldnt it? im not sure if I made the typo or if mxm did.. hehe

#4 flattspott

flattspott

    X-S Freak

  • Moderator
  • PipPipPipPipPip
  • 1,787 posts
  • Location:Southern California
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 01 September 2004 - 05:14 AM

yes it should be setfunc

and its FileExists

CODE
SetFunc IGR FileExists E:\x2_IGR_disabled


#5 SumDumGuy3

SumDumGuy3

    X-S Young Member

  • Members
  • Pip
  • 53 posts

Posted 01 September 2004 - 05:47 AM

ok, first... yeah your right the error says Setfunc not Selfunc... that was my bad... also FileexistS does seem to do the trick... but ALL of the documentation I found for n6 says that the function is Fileexist without the S... anyway, thanks for the info...





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users