? How to know if a DAT file is a GRP before load it? (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

How to know if a DAT file is a GRP before load it?

  • #1 ✎ 8 Javo118 Just that, I am trying to maje a list of all of the GRP of all the projects but dunno how to filter the list Posted
  • #2 ✎ 998 12Me21 Admin Helper Received for being very helpful around SmileBASIC Source Achievements Syntax Highlighter Received for creating the code syntax highlighter on SBS Winter 2016 Contest Winner I won the SmileBASICSource Winter 2016 Contest! Programming Contest There's no way to tell. :( Posted
  • #3 ✎ 8 Javo118 Mmmm so there is something that "load" it and if is not a GRP don't close my app? Something like "if load-error then show dialog" Posted
  • #4 ✎ 216 ProgrammingChicken Forum Contributor Hidden Achievements Avatar Embargo I didn't change my avatar for 90 days Website Banana For Scale Hidden Easter Eggs perhaps you could emulate the loading system? would be slow and require lots of setup, but it would work Posted
  • #5 ✎ 8 Javo118
    perhaps you could emulate the loading system? would be slow and require lots of setup, but it would work
    Can you explain it a little more? Please
    Posted
  • #6 ✎ 216 ProgrammingChicken Forum Contributor Hidden Achievements Avatar Embargo I didn't change my avatar for 90 days Website Banana For Scale Hidden Easter Eggs
    perhaps you could emulate the loading system? would be slow and require lots of setup, but it would work
    Can you explain it a little more? Please
    As in trying to pretend to load it as if it was a GRP. But the loading is not done by SB's internal tools, it's done by your code.
    Posted
  • #7 ✎ 998 12Me21 Admin Helper Received for being very helpful around SmileBASIC Source Achievements Syntax Highlighter Received for creating the code syntax highlighter on SBS Winter 2016 Contest Winner I won the SmileBASICSource Winter 2016 Contest! Programming Contest Don't listen to ProgrammingChicken. It's impossible to do this. Posted
  • #8 ✎ 216 ProgrammingChicken Forum Contributor Hidden Achievements Avatar Embargo I didn't change my avatar for 90 days Website Banana For Scale Hidden Easter Eggs
    Don't listen to ProgrammingChicken. It's impossible to do this.
    *not feasible
    Posted
  • #9 ✎ 998 12Me21 Admin Helper Received for being very helpful around SmileBASIC Source Achievements Syntax Highlighter Received for creating the code syntax highlighter on SBS Winter 2016 Contest Winner I won the SmileBASICSource Winter 2016 Contest! Programming Contest You can't load a file without using LOAD, and LOADing into an array with the wrong number of dimensions causes an error. Therefor it is impossible to load a random DAT/GRP file. Posted Edited by 12Me21
  • #10 ✎ 216 ProgrammingChicken Forum Contributor Hidden Achievements Avatar Embargo I didn't change my avatar for 90 days Website Banana For Scale Hidden Easter Eggs
    You can't load a file without using LOAD, and LOADing into an array with the wrong number of dimensions causes an error. Therefor it is impossible to load a random DAT/GRP file.
    give us catch error pls smileboom
    Posted
  • #11 ✎ 8 Javo118 Yeah, i want a catch error T_T, well, this make my project a little buggy, i will continue it anyway, thanks both Posted