I can crash Sdesigner at will. I am not sure this is a bug as much as an ID 10 T user error (ID10T) However I believe many beginning users will encounter the same results as they learn their way in Sesame.
I was working with global statics and variables and typed
var GSNextCustRecNo as int
GlobalValue(gsnextcustrecno, 221)
If @IsNew and PatientID = "" then {
PatientID = @tonumber(@GlobalValue("NextCustRecNo")) + 1
GlobalValue("NextCustRecNo", patientId)
}
I used the test button and received no errors. But when I save and preview, Sdesigner crashes.
I seem to miss the boat when trying to understand Global features. I am obviously not comprehending something because I keep falling down at this spot.
I was following the Example of making a global record number and using this as a record id. I thought I would go to program Layout and under global code declare my variable.
var GSNextCustRecNo as int // my declaration saying that this variable will be a number
Then I thought I needed to Set the variable
(GlobalValue(gsnextcustrecno, 221)
Then I thought I needed to stick the logic in that executed the task. (I had no clue were to put it) (No comments from the peanut gallery please) I put it under global code thinking it would always be available and hoped once I pressed test and it found no errors I was not to far off

(Wrong Next Contestant Please)
If @IsNew and PatientID = "" then {
PatientID = @tonumber(@GlobalValue("NextCustRecNo")) + 1
GlobalValue("NextCustRecNo", patientId)
}
But this forces Sdesigner to close with a crash.
Were have I gone wrong?
Thanks