April 29, 2024, 06:33:03 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Bugs

Started by Zen, November 10, 2005, 02:27:49 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Ionic Wind Support Team

if *Itemp.value <> ""

Typo?

I'll fix the crash, you fix the typo ;)
Ionic Wind Support Team

Zen

Silly me. I dont even know how i got a completley different variable name. must of got distracted. lol.

Quote
I'll fix the crash, you fix the typo
Sounds fair to me ;D

Thanks
Lewis

Zen

Not really my day.

ive made a function with an optional second string peramater. If i dont put in the second peramater when i call the function i get the following error.


Compiling...
Main.src
D:\Script Engine\Source Code\CGI\Main.src:24: error: symbol `STR00000' undefined
D:\Script Engine\Source Code\CGI\Main.src:50: error: phase error detected at end of assembly.
Error(s) in assembling "D:\Script Engine\Main.asm"
CGI.inc
CGI.src


I dont know if optional peramaters have been done yet but i tried it like this function(string var1,opt string var2="")

Lewis

Ionic Wind Support Team

Can I see the code?

If it's a class member function then I haven't fully tested optional paramters.  Should work fine with normal functions though.

Paul.
Ionic Wind Support Team

Zen

Here is the code. Yes it is a class member.


CGI :: AddHeader(string key,opt string value = "") {

HEADER_INFO Temp;
HEADER_INFO *Item;

Temp.key = key;
Temp.value = value;

Item = ListAdd(HeaderList,_new(LEN(HEADER_INFO)));
*Item = Temp;

return;

}


If i put "" as the second peramater it works ok so ill do that untill it gets fixed.

Thanks
Lewis

Ionic Wind Support Team

I'll look when I get home form work.

Make sure it's set up the same way in the method declare of the class too.

class CGI {
declare AddHeader(string key,opt string value = "") ;
...
}

Paul.
Ionic Wind Support Team

Zen

Hmm i was expecting a big simpsons Dohhh coming along when you said to check the class delarations but for once i did. lol.

Thanks
Lewis