Announcement

Collapse
No announcement yet.

Why this code is not workin???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why this code is not workin???

    Code:
    audioFile = Dialog.FileBrowse(true, "Open File", _DesktopFolder, "Audio Files (.ogg, .wav, .aif, .aiff, .raw )|*.ogg;*.wav;*.aif;*.aiff;*.raw;*.mp3;*.mp4;|", "", "", false, true);
    if (audioFile[1] ~= "CANCEL") then
        Audio.Load(CHANNEL_BACKGROUND, audioFile[1], true, false);
    end
    sPath = Audio.GetFilename(CHANNEL_BACKGROUND);
    tParts = String.SplitPath(sPath);
    Label.SetText("Label15", tParts.Filename .. tParts.Extension);

  • #2
    There's nothing wrong with this code, in and of itself. It's works exactly as it's supposed to work.

    If it's failing in your project, then there's a problem with some 'other' aspect of your project in relation to how it's interacting with the code. Given that you've supplied no contextual information, we can only 'guess' as to the cause. And my 'guess' would be that you've mislabeled an object. But the exact nature of the problem is indeterminable until you supply the relevant data required to solve it.

    This is the 2nd time you've requested help without supplying the prerequisite data necessary to solve the problem. We are not mind-readers here. We offer assistance by applying deductive logic to buggy code. But the logic must be contextualized first. It's not supernatural and it's not rocket-science. But a code dilemma remains unsolvable until you supply the required variables necessary to apply the logic.

    So, once again - upload the .apz file. Once that's done, it'll then be possible to figure out why a 'working code block' such as this is failing in your project. If the .apz is 'confidential' then upload a 'mockup' of the project instead.

    Comment


    • #3
      Originally posted by BioHazard View Post
      There's nothing wrong with this code, in and of itself. It's works exactly as it's supposed to work.

      If it's failing in your project, then there's a problem with some 'other' aspect of your project in relation to how it's interacting with the code. Given that you've supplied no contextual information, we can only 'guess' as to the cause. And my 'guess' would be that you've mislabeled an object. But the exact nature of the problem is indeterminable until you supply the relevant data required to solve it.

      This is the 2nd time you've requested help without supplying the prerequisite data necessary to solve the problem. We are not mind-readers here. We offer assistance by applying deductive logic to buggy code. But the logic must be contextualized first. It's not supernatural and it's not rocket-science. But a code dilemma remains unsolvable until you supply the required variables necessary to apply the logic.

      So, once again - upload the .apz file. Once that's done, it'll then be possible to figure out why a 'working code block' such as this is failing in your project. If the .apz is 'confidential' then upload a 'mockup' of the project instead.
      Okay this code worked for now but idk why Volume code is not workin and i tried several codessss didn't work..
      btw where are you from?

      Comment

      Working...
      X