Jump to content
Sign in to follow this  
GodForsakenSoul

how hath i sinned?!

Recommended Posts

GodForsakenSoul

Func FKanCheckScore()
    $kcsIR1=IniRead($gIniPath,$Ini2,"SCORE",0)
    $kcsSS=StringSplit($kcsIR1,"")
    ReDim $kcsSS[6]
    For $kcaL=1 To 5
        If $kcsSS="" Then
            $kcsSS=0
        EndIf
    Next
    Return $kcsSS
EndFunc

let's make this short and sweet.

My problem here is that this lovely function doesn't 0-fy the blanks. There ARE blanks.

suggestions?

Share this post


Link to post
Share on other sites
Jos

$kcsSS is an array so your test is wrong!

Also rethink what you want to do after the If is true.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
GodForsakenSoul

oh....

OH!

amazing how much change can about 5 letters make... no?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×