Sorry Im still not getting why this isnt working ?
Its just looping not matter what I put in the PC Name bit? I read all the sections about WHILE...LOOP AND TRIM but i cant see where im going wrong, please help !!
code:
Break On
?"Please enter the Pc Name you wish to connect too"
?"e.g. OSYS10"
?
?
Gets $PcName
While Trim($Pcname)="" OR Trim($Pcname)="*"
? "Please Re-enter PcName "
Gets $PcName
Loop
Break On
?"Please enter the Extension you wish the user to see"
?"e.g. 1340"
?
?
Gets $ext
Break On
?"Please enter the Subject the message Box is regarding"
?"e.g. Backup Tapes"
?
?
Gets $Subj
$Selection = SendMessage("$pcName", "Please Contact Your System Administrator on Extension $ext ASAP Regarding $subj")
If $Selection = 1
? "Ok Selected"
EndIf
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields