Discussions

Petit computer 3 Community

ηβκ V-13.7hibiking0412

10/12/2017 9:43 AM ·Spoilers

Open Closed

プログラムを削除する命令を教えてください。

できれば削除が完了した後、次回そのプログラムを実行したとき削除の命令が実行されないやつを教えてください。できればヒントとかではなく、直接教えてほしいです。

Advertisement

Comment

This post has no comments.

  • >プログラムを削除する命令 「DELETE "ファイル名"」で特定のファイルを削除できます。 >削除が完了した後、次回そのプログラムを実行したとき削除の命令が実行されない 「CHKFILE」という命令があります。 これは「特定のファイルがあるかどうか判定する」という命令です。 この命令で、削除するファイルがあるかどうかを判定して、 あればDELETEを実行、なければ実行しない、という風に分岐させればOKです。

    Yeahs0
    Played
  • 削除したいファイルが「HISCORE」なら、 「IF CHKFILE("HISCORE")==1 THEN DELETE"HISCORE"」 と書けば多分動くと思います。

    Yeahs0
    Played
  • うお!わかりやす! 早速やってみます!

    Yeahs0
    Played
  • できましたっ! 情報ありがとうございました! お礼にフォローしますね!

    Yeahs0
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-DPU-2NLA-4K7-6E8A

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: