Page 4 of 4

Posted: Sat Oct 04, 2003 8:17 pm
by Plazmic
/echo "@test(1)"

Posted: Sat Oct 04, 2003 10:33 pm
by MattHensley
that was a typo in my post, I've done

/echo "@test(1)"

and it actually echo's @test(1) with the @ symbol and all

Posted: Sun Oct 05, 2003 12:25 am
by Dogvomit
/echo @test(1)

Posted: Sun Oct 05, 2003 5:39 am
by MattHensley
okay so I found the problem, I was actually using an underscore in my array which I neglected to post in my example.. bad programming habit! for example:

/varset test array

works but

/varset array_test array

doesn't, so I guess no hungarian notation for me :(

*edit*

ugh I just realized you can't have an underscore in vars either and I just converted about 1000 lines of code doing so... search and replace time

I like underscores too

Posted: Sun Oct 05, 2003 1:34 pm
by Ohmz

Code: Select all

// ***************************************************************************
// Function:    GetArg
// Description: Returns a pointer to the current argument in szDest
// ***************************************************************************
PCHAR GetArg(PCHAR szDest, PCHAR szSrc, DWORD dwNumber, BOOL LeaveQuotes, BOOL ToParen, BOOL CSV, CHAR Separator, BOOL AnyNonAlphaNum)

...

(szTemp[i]>='a' && szTemp[i]<='z') ||

TO:

(szTemp[i]>='a' && szTemp[i]<='z') || (szTemp[i]=='_') ||

...
I think alot of people use underscores, may want to add this to the public distro.

Posted: Sun Oct 05, 2003 4:20 pm
by Plazmic
Yeah, I only used alphanumeric for variable names... adding underscore is a good idea.