|
|
|||||||
I'm writing a script to automate a manual process we have. When I check to see if the $txtSecGroupName field is blank, in which it is when I'm testing it says it's not blank. When I print the contents of that field it shows "15215720". Chances are it's something simple as always that I'm missing because I'm looking too deep for it... Below is my code.. I'm using kix 4.02 and kixforms 2.1.1.35. Thanks in advance.. code:break on |
||||||||
|
|
|||||||
yes it was your problem is that 4.02 does not error out on error. you were testing if object was there or not. change your if at the end to: code:cheers.IF $txtSecGroupName.caption = "" |
||||||||
|
|
|||||||
It is not blank. the variable is an object: $txtSecGroupName = $FORM.TextBox("",3,30,300,20) don't you have to $txtSecGroupName.value to check the "value"? |
||||||||
|
|
|||||||
Lonkero, I added the $txtSecGroupName.caption and it worked. Told ya' it was something simple... Howard, I coded it like that to try to give it a null value to begin. Thanks for the reply... This board is too cool... Thanks.. |
||||||||
|
|
|||||||
cmarti: Tip: My suggestion would be to not use the KixTart builtin MessageBox function with Forms. Reason: it most often messes-up the stacking of windows in ones GUI app. The reason is because the KixTart script (any KixTart script) already has a parent top level window associated with it - otherwise known as "your DOS console window". When builtin MessageBox fires-up, it uses the DOS console window as its parent window, not the $form we create in our script. The format of Forms MessageBox is something like this: $rc = $Form.MsgBox("Prompt","Title",Style) Why oh why did I call it MsgBox and not MessageBox ... was on a VBA kix at the time (doh). |
||||||||
|
|
|||||||
Thanks Shawn, I've changed it in my script. L8tr... |