06-30-2011 04:32 AM
Is there a developers reference manual available online for 7.5.1? I used to have one for V6.x but we upgraded last year.
I've looked on this site and on the UK site (support.sage.co.uk)
06-30-2011 04:58 AM
06-30-2011 06:23 AM
HI Thanks for the reply,
I don't have a login for that site (and there seems to be no way to register), I'm going to contact our third party supplier to see if they can provide me with a login ID.
At the moment all I am looking for is the definition of the 'Asc' function, it's in an old vb script manual I have found, returns the ASCII code when passed a character. Using it the the following code in the standard 'Contract' Form...
For intCharPosition = 1 to 9
If (intCharPosition = 1 or intCharPosition = 2) Then
If (Asc(Mid(txtReferenceNo.Text, intCharPosition,1)) < 65 Or Asc(Mid(txtReferenceNo.Text, intCharPosition,1)) > 90)Then
blnValidFormat = False
End If
Else
If Asc(Mid(txtReferenceNo.Text, intCharPosition,1)) < 48 Or Asc(Mid(txtReferenceNo.Text, intCharPosition,1)) > 57 Then
blnValidFormat = False
End If
End If
Next
Getting an error:-
Invalid procedure call or argument: 'Asc'
Thanks
06-30-2011 06:37 AM
Someone in your company should have a login.
The asc is just a normal vbscript function. You can get info here:
http://www.w3schools.com/vbscript/default.asp
and I suggest you get Microsoft's VBscript help file. It's what we all use.
07-01-2011 03:25 AM
Thanks for the link.
Got the code working; it seems that Saleslogix doesn't like nested function calls in 'If' statements, assigned
'Mid(txtReferenceNo.Text, intCharPosition,1)' to a temp variable and then checked that in 'Asc' and it works fine....