GW 6.5 Tokens and ItemGetText

Greetings,
I have a VBA program that opens E-mails and saves attachments from those E-
mails to specific directories based on the sender, subject and the
attachment name. We are in the testing stages of 6.5 and the following
code does not work as it does in our current version:
bOk = oGWComm.Execute("ItemGetText(" & sMessId & ";1)", sFromName)
bOk = oGWComm.Execute("ItemGetText(" & sMessId & ";9)", sSubjectText)
In our current version, sFromName gets the From name and sSubjectText gets
the subject line. In 6.5, they both comeback empty (""). Any help is
appreciated.
Cory McDermaid

Cory
Just confirm that your Groupwise client is 6.5.2 (under Help - > About Groupwise)
The following code works for me. Note that I am only using the ItemMessageIDFromView() to give me a Message ID. This approach only works if you have a message open in the Groupwise client. You are probably retrieving your Message ID in some other way.
Sub ShowStuff
Dim GWDDE As Object
Dim vMessID As String
Dim vSuccess As Long
Dim vFromName As String, vSubject As String
Set GWDDE = CreateObject("GroupWiseCommander")
' Make sure you have a message open on screen and get its Message ID
vSuccess = GWDDE.Execute("ItemMessageIDFromView()", vMessID)
' Now get the Name and Subject
vSuccess = GWDDE.Execute("ItemGetText(""" & vMessID & """;1)", vFromName)
vSuccess = GWDDE.Execute("ItemGetText(""" & vMessID & """;9)", vSubject)
MsgBox "Mail from " & vFromName & vbCrLf & "has subject " & vSubject
Set GWDDE = Nothing
End Sub
>>> <[email protected]> 03-Dec-04 14:34 >>>
Corbett,
I confirmed with our GW admin that we are using SP2. I am still at a loss.
Can you provide the code that you used to test? Any help is greatly
appreciated.
Cory
> Cory
>
> I am using GW 6.5 SP2 and just tried this out with a new message (X00)
and with a received message and both worked fine. If you are not using
SP2 I would suggest trying it.
>
> Regards
> Corbett
>
> >>> <[email protected]> 02-Dec-2004 13:40 >>>
> Thank you for your reply Corbett.
>
> I define sMessID as
>
> sMessId = Chr(34) & "X00" & Chr(34)
>
> which, in effect, adds the encapsulating quotes around the sMessId.
>
> This token worked very well in GW 6.2.
>
> There are some differences that I have noticed between 6.2 and 6.5 that
I
> think might be affecting this token.
>
> In 6.2, the FROM and SUBJECT areas of a sent e-mail display the
completed
> information using textboxes which appear to be identical to the
textboxes
> used when composing an E-mail.
>
> IN 6.5, the FROM and SUBJECT appear in the gray area at the top of a
sent
> E-mail and are not in the form of a textbox. The composing of an E-mail
> still uses textboxes for the FROM and SUBJECT.
>
> This leads my reasoning to suspect that the fact that the FROM and
SUBJECT
> of a sent E-mail are not in "textboxes" makes the ItemGetText token to
> fail in my scenario.
>
> Is there another token that I am missing that can accomplish this task?
> Would more code be of help?
>
> Thanks in advance!
>
> Cory
>
>
> > Should there not be encapsulating quotes around the sMessId:
> >
> > bOk = oGWComm.Execute("ItemGetText(""" & sMessId & """;1)", sFromName)
> >
> > Regards
> > Corbett
> >
> > >>> <[email protected]> 19-Nov-2004 21:16 >>>
> > Greetings,
> >
> > I have a VBA program that opens E-mails and saves attachments from
those
> E-
> > mails to specific directories based on the sender, subject and the
> > attachment name. We are in the testing stages of 6.5 and the following
> > code does not work as it does in our current version:
> >
> > bOk = oGWComm.Execute("ItemGetText(" & sMessId & ";1)", sFromName)
> > bOk = oGWComm.Execute("ItemGetText(" & sMessId & ";9)", sSubjectText)
> >
> > In our current version, sFromName gets the From name and sSubjectText
> gets
> > the subject line. In 6.5, they both comeback empty (""). Any help is
> > appreciated.
> >
> > Cory McDermaid
> >
> >
>
>
>

Similar Messages

  • Tokens and arrays

    hello, I need help with the following. I have broken contents of file into tokens, and now I want to load those tokens into arrays and display the contents of the arrays. How do i do this?
    The name of the file is testing.txt with the following three lines;
    Hey your world!
    beware of mortgage fraud.
    Research before you buy!
    my code is as follows;
    import java.io.*;
    import java.util.StringTokenizer;
    import java.util.*;
    public class Test{
         public static void main(String[] args){
              try{
                   //collect a file path / name from the user
                   System.out.println( " Enter the filepath for loading" );
                   Scanner myScanner = new Scanner(System.in);
                   String fileName = myScanner.next();
                   //load the contents of that file into a bufferedreader
                   FileReader myFR = new FileReader(fileName);
                   BufferedReader myBR = new BufferedReader(myFR);
                   String line = " ";
                   StringTokenizer words;
                   String word = " ";
                   System.out.println("Here are the lines in the file ");
                   System.out.println(" ");
                   //loop through the lines of the document (which method reads lines?)
                   //main loop repeats until there are no more line
                   while((line = myBR.readLine())!=null)
                   {System.out.println(" The line is ");
                        System.out.println(line);
                           //line = myBR.readLine();
                        System.out.println("");
                        System.out.println( " Broken like a token ");
                        System.out.println( "");
                   ////break each line into tokens,
                      words = new StringTokenizer(line);
                      ////loop through the tokens, process each word in the line
                      while(words.hasMoreTokens()){
                        word = words.nextToken();
                        System.out.println(word);
                   //end while
                   //load each token into an array
                   String wordAry [] = new String[11];
                   //loop through the array and present each token to the user          
                        for(int index=0; index<13; index++){      
                   System.out.println(wordAry[index]);
                   System.out.println("");
              System.out.println(" The Contents of array Results " );
              }catch(FileNotFoundException e){
                   System.out.println("File could not be found or opened");
              }catch(IOException e){
                   System.out.println("Error reading file");
              }// end catch
         }//end main
    }//end class

    Well you've definitely created an array...but you never put anything in it. You have to actually put something IN the array in order to get it out later. Also, your array is size 11, meaning the indexes go from 0 to 10. But your print loop goes from 0 to 12, so you'll get an out of bounds exception.
    If you don't understand array basics, read the tutorial: [http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html]

  • Synchronizer token and JSF

    Hello,
    I am just wondering if JSF offers a synchronizer token feature in order to avoid multiple form submissions.
    Thanks in advance,
    Albert Steed.

    Here's how I've implemented a token synchronizer pattern in my web app.
    This example has a session-scope Visit object and request-scope RequestBean:
      <managed-bean>
        <description>Session bean that holds data and delegates needed by request beans.</description>
        <managed-bean-name>visit</managed-bean-name>
        <managed-bean-class>com.example.Visit</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
      <managed-bean>
        <description>Some request bean.</description>
        <managed-bean-name>reqBean</managed-bean-name>
        <managed-bean-class>com.example.RequestBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
          <property-name>visit</property-name>
          <value>#{sessionScope.visit}</value>
        </managed-property>
      </managed-bean>My Visit class has the following:
        private long activeToken;
        private long receivedToken;
         * This returns the active save token.  Note that this is not the same
         * variable that is set by the setSaveToken() method.  This is so we can put a
         * tag in a JSP:<br/>
         *   <h:inputHidden value="#{visit.saveToken}" /> <br/>
         * That will retrieve the active token from Visit when the page
         * is rendered, and when the page is returned, setSaveToken() sets the
         * received token.  The tokens can then be compared to see if a save
         * should be performed.  See BaseBean.generateToken() for more details.
         * @return Returns the active save token.
        public long getSaveToken() {
            return this.activeToken;
         * Sets the received token.  Note that this method is only intended to be
         * called by a JSF EL expression such as: <br/>
         *   <h:inputHidden value="#{visit.saveToken}" /> <br/>
         * See getSaveToken() for more details on why.
         * @param received token value to set
        public void setSaveToken(long aToken) {
            this.receivedToken = aToken;
        void setReceivedToken(long aToken) {
            this.receivedToken = aToken;
        long getReceivedToken() {
            return this.receivedToken;
        void setActiveToken(long aToken) {
            this.activeToken = aToken;
        long getActiveToken() {
            return this.activeToken;
         * @return true if the active and received token are both non-zero and they match
        boolean tokensMatchAndAreNonZero() {
            return (this.activeToken != 0) && (this.receivedToken != 0) && (this.activeToken == this.receivedToken);
    . . .My backing beans extend a base class BaseBean with these methods:
         * Generates a new save token, saving it to a field in Visit. Guaranteed to not
         * generate a 0 (0 is used to denote an expired token).<br/><br/>
         * This token is used to make sure that
         * actions that modify data in a way that should not be immediately repeated.
         * Call this method prior to rendering a page that will submit the non-repeatable
         * request.  Then before saving any data, call saveTokenIsInvalid() to see if the
         * save should be executed.  If the token is valid, expire it and proceed with
         * saving.<br/>
         * The view that submits an unrepeatable request should have the tag:<br/>
         *      <h:inputHidden value="#{visit.saveToken}" /><br/>
         * in it.  Visit.getSaveToken() will set this field with the active token when the
         * page is rendered.  Visit.setSaveToken() will set a received token field, which
         * can then be compared to the active token to find out whether a save should be
         * performed.
        protected void generateSaveToken() {
            logger.debug("generateSaveToken()");
            Random random = new Random();
            long token = random.nextLong();
            while (token == 0) {
                token = random.nextLong();
            this.getVisit().setActiveToken(token);
            this.getVisit().setReceivedToken(0);
         * Checks the save token to see if it is valid.
         * @true if the save token is invalid.  It is invalid if either the received or the active
         * tokens in Visit are zero, or if the tokens do not match.
        protected boolean saveTokenIsInvalid() {
            if (logger.isDebugEnabled() ) {
                logger.debug("saveTokenIsInvalid():\nactive token: " + this.getVisit().getActiveToken() + "\nrecv'd token: " + this.getVisit().getReceivedToken() );
            boolean isValid = this.getVisit().tokensMatchAndAreNonZero();
            // return the inverse because this method is called "saveTokenIsInvalid"
            return !isValid;
         * Sets active token to zero, preventing any saves by methods that check for valid save token
         * before committing a change until generateSaveToken() is called again.
        protected void expireSaveToken() {
            logger.debug("expireSaveToken()");
            this.getVisit().setActiveToken(0);
         * Logs an info message saying that a save action was not performed because of invalid save
         * token.  Returns given String as outcome.
         * @param logger for subclass calling this method
         * @param outcome
         * @return outcome
        protected String logInvalidSaveAndReturn(Logger subclassLogger, String outcome) {
            if (subclassLogger.isInfoEnabled() ) {
                subclassLogger.info("User " + this.getVisit().getUsername() + " submitted a save request that was not " +
                        "processed because the save token was not valid.  Returning outcome: '" + outcome + "'.");
            return outcome;
        // Used by JSF managed bean creation facility
        public Visit getVisit() {
            return this.visit;
        // Used by JSF managed bean creation facility
        public void setVisit(Visit visit) {
            this.visit = visit;
    . . .Any method that sets up a view containing a form I only want submitted once generates a token:
           this.generateSaveToken();And the token gets embedded in the HTML form with the tag:
    <h:inputHidden value="#{visit.saveToken}" />An action method in RequestBean would then use the token to prevent multiple identical saves as follows:
        public String someActionMethod() {
            // prevent identical requests from being processed
            String normalOutcome = Constants.NavOutcome.OK;
            if (this.saveTokenIsInvalid() ) {
                return this.logInvalidSaveAndReturn(logger, normalOutcome);
            this.expireSaveToken();
            logger.debug("save token is valid.  attempting to save....");
            try {
                  // invoke some business logic here
            } catch (MyException exc) {
                  // important: if you are returning the user to the same form view with an error message,
                  // and want to be able to process subsequent form submissions, then the token
                  // needs to be regenerated
                  this.generateSaveToken();
                  return null;
    . . .It has worked great so far. The only problems I've had are when I forget to generate or expire a token, or I forget to embed it in my form.
    I also had a problem where I expired the token after my business logic completed, and my business logic took about 30-60 seconds to process--if the user clicks on the submit button several times while waiting for the page to return, the backing bean method still sees a valid token and processes the request. This was solved by simply expiring the token prior to invoking the business logic (as shown in the above example).
    HTH,
    Scott

  • Since I upgraded to Lion, my RSA securid token and Cisco VPN client doesn't work any longer. Anyone have suggestions on how to fix that?

    Since upgrading to Lion, I can no longer use VPN because my RSA securid token and CIsco VPN Client won't load. Any suggestioins out there?

    .

  • Token and smart card reader are not detected on Mavericks if not plugged on a USB port during system boot

    Well, both token and smart card reader are not detected on OS X 10.9 if not plugged on a USB port during system boot. So, if I am already working within the system and need to use my certificates I have to plug the token or smart card reader on a USB port and restart Mavericks.
    Token is a GD Starsign and Smart Card Reader is a SCR3310 v2.
    Thoughts?

    SCS is a very good app, since I've read that Apple has discontinued support for PC/SC interfaces after the release of Mountain Lion.
    (My previous installation was a Mavericks upgrade from Lion)
    However, I don't know what and how to debug using Smart Card Services. Do you know any commands to use?
    Apparently, the SC reader reports no issues: the LED is blinking blue when no smart card is present and becomes fixed blue when a smart card is inserted – according to the manuals, this shows that there is correct communication between the OS and the CCID reader.
    I don't know what to do; I'm beginning to hypothesize it's a digital signer issue. In fact, my smart card only supports one application called File Protector (by Actalis) to officially sign digital documents. This application seems to have major difficulties in identifying the miniLector EVO.
    The generic and ambiguous internal error comes when I try to manually identify the peripheral.
    Athena CNS is one of the Italian smart cards and is automatically recognized and configured (so it's correct – no doubts about this), while "ACS ACR 38U-CCID 00 00" seems to be the real name of the miniLector.
    (I'm assuming this because System Information also returns that the real manufacturer is ACS... bit4id is a re-brander)
    However, when I click on it and then tap OK, it returns internal error.
    As first attempt, I would try to completely erase&clean File Protector files to try a reinstall. Then, if this still doesn't work, I'd debug using the terminal.
    So:
    - Do you know any applications to 100% clean files created by an installer?
    - Do you have in mind any solutions that I might have forgotten?
    Thanks in advance from an OS X fan!

  • WHAT are tokens and how it is issued and how it is viewed and solved by who

    WHAT are tokens and how it is issued and how it is viewed and solved by who
    points will be awarded

    Hi Jagrut,
    If you are talking of support token then,
    TOKENs are nothing but the issues faced in the actual live system(Production).
    So the end user who is facing will raise it, it will be assigned to the production support team and they will solve it.
    Regards,
    Atish

  • Creating A Service Bus SAS Token and Consuming Relay in WinRT

    I have a Service Bus Relay (WCF SOAP) I want to consume in my Windows Store App. I have written the code to create a token as well as the client which is below.
    The problem is that I get an AuthorizationFailedFault returned with a faultstring "InvalidSignature: The token has an invalid signature." And I can't figure it out.
    My Create Token method:
    private static string CreateSasToken()
    TimeSpan sinceEpoch = DateTime.UtcNow - new DateTime(1970,1, 1);
    var expiry = Convert.ToString((int)sinceEpoch.TotalSeconds + 3600);
    string stringToSign = webUtility.UrlEncode(ServiceUri.AbsoluteUri) + "\n" + expiry;
    string hashKey = Encoding.UTF8.GetBytes(Secret).ToString();
    MacAlgorithmProvider macAlgorithmProvider = MacAlgorithmProvider.OpenAlgorithm(MacAlgorithmNames.HmacSha256);
    BinaryStringEncoding encoding = BinaryStringEncoding.Utf8;
    var messageBuffer = CryptographicBuffer.ConvertStringToBinary(stringToSign,encoding);
    IBuffer keyBuffer = CryptographicBuffer.ConvertStringToBinary(hashKey,encoding);
    CryptographicKey hmacKey = macAlgorithmProvider.CreateKey(keyBuffer);
    IBuffer signedMessage = CryptographicEngine.Sign(hmacKey, messageBuffer);
    string signature = CryptographicBuffer.EncodeToBase64String(signedMessage);
    var sasToken = String.Format(CultureInfo.InvariantCulture,
    "SharedAccessSignature sr={0}&sig={1}&se={2}&skn={3}",
    WebUtility.UrlEncode(ServiceUri.AbsoluteUri),
    WebUtility.UrlEncode(signature), expiry, Issuer);
    return sasToken;
    My Client class:
    public partial class ServiceClient
    public async Task<string> GetDataUsingDataContract(string item, string sasToken)
    HttpClient client = new HttpClient();
    client.DefaultRequestHeaders.Add("ServiceBusAuthorization",sasToken);
    client.DefaultRequestHeaders.Add("SOAPAction",".../GetDataUsingDataContract");
    client.DefaultRequestHeaders.Add("Host", "xxxxxxxxxxx.servicebus.windows.net");
    HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post,ServiceUri);
    var content =new StringContent(@"<s:Envelope
    xmlns:s=""http://schemas.xmlsoap.org/soap/envelope/"">
    <s:Header></s:Header><s:Body>"+ item +@"</s:Body>
    </s:Envelope>",System.Text.Encoding.UTF8,"application/xml");
    request.Content = content;
    HttpResponseMessage wcfResponse = client.SendAsync(request).Result;
    HttpContent stream = wcfResponse.Content;
    var response = stream.ReadAsStringAsync();
    var returnPacket = response.Result;
    return returnPacket;
    I have been successful consuming the Relay using Http (via Fiddler) by copying an unexpired token created by Micorosft.ServiceBus in a console app.
    John Donnelly

    Thanks Girish. I eagerly await some help on this. I have figured a lot out but I am stuck on creating a good SAS Token.
    I reposted a question I asked on StackOverflow here  in this MSDN forum
    here if you can help on creating steer me in the right direction.
    John Donnelly

  • Tokens and delims

    I have managed to tokenise each token of a file, but I can't seem to
    get it to recognise a new line or tab in the file.
    For example, the txt files contain tokens such as below.
    03255446     drink     5.50
    above - a tab separating each thing
    04654745
    08586799
    04636346
    and a new line being the separator here.
    In my string tokenizer (below) if the "\r" or "\t" is added as I
    thought these recognised both features, it simply reads the first
    token. When I simply put a space between the tokens in the file, and
    remove the \r or \t, it finds all the tokens fine. Also, I have called
    nextToken() after this, does this also need a separator identifier
    within the brackets?
                  line = inputBuffer.readLine();
                  barLine = barCodeReader.readLine();
                    StringTokenizer stock = new StringTokenizer(line); // tokenizer
                    StringTokenizer bar = new StringTokenizer(barLine, "\r");
                    I first read two files using buffer readers, and line and barLine represent these. I have then created two string tokenizers for these and need it to know how to make it recognise a tab or return value as the separator of tokens.
    I made a post the other day and someone recommeneded going to the api with the system class, but still after days of this problem I still cannot resolve it.
    Please can someone help as this problem is stopping me from moving on.
    Any ideas much appreciated.
    Thanks.

    Please can someone help as this problem is stopping me
    from moving on.
    Any ideas much appreciated.
    Ask a more coherent question
    Thanks.
    You're welcome

  • How to split a string into tokens and iterate through the tokens

    Guys,
    I want to split a string like 'Value1#Value2' using the delimiter #.
    I want the tokens to be populated in a array-like (or any other convenient structure) so that I can iterate through them in a stored procedure. (and not just print them out)
    I got a function on this link,
    http://www.orafaq.com/forum/t/11692/0/
    which returns a VARRAY. Can anybody help me how to iterate over the VARRAY, or suggest a different alternative to the split please ?
    Thanks.

    RTFM: http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/collections.htm#sthref1146
    or
    http://www.oracle-base.com/articles/8i/Collections8i.php

  • ACS for 802.1x Authentication using RSA Tokens and Microsoft PEAP

    Has anyone been able to configure 802.1x authentication on Windows XP machines using RSA tokens using Cisco ACS as the RADIUS server?
    I have come up with bunch of incompatibilities between the offered support e.g.
    1. Microsoft PEAP does not support anything but smartcard/certificate or MSCHAP2.
    2. Cisco support PEAP and inside it MSCHAP2 or EAP-GTC
    We tried using RSA provided EAP client both the EAP security and EAP-OTP options within Microsoft PEAP but ACS rejects that as "EAP type not configured"
    I know it works with third party EAP software like Juniper Odyssey client and the Cisco Aegis Client but we need to make it work with the native Windows XP EAP client.

    Hi,
    We have tried to do the exact same setup as you and we also failed.
    When we tried to authenticate the user with PEAP-MSCHAPv2 (WinXP native) ACS gives "external DB password invalid", and does not even try (!) to send the login to the RSA server. No traffic is seen between RSA and ACS.
    MS-PEAP relies on hashing the password with MS-CHAPv2 encoding. This is not reversible. RSA, on the other hand, does not require hashing of the password due to the one time nature of it. So they (RSA) don't.
    When we authenticate using e.g. a 3rd party Dell-client, we can successfully authenticate using either PEAP-GTC (Cisco peap), EAP-FAST and EAP-FAST-GTC.
    A list with EAP protocols supported by the RSA is in attach.
    Also below is the link which says the MS-PEAP is NOT supported with the RSA, please check the
    table "EAP Authentication Protocol and User Database Compatibility "
    http://www.cisco.com/univercd/cc/td/doc/product/access/acs_soft/csacs4nt/acs33/user/o.htm#wp792699
    What we are trying to do now in the project is leaving the AP authentication open and try to authenticate it using RADIUS through a firewall or Cisco router authentication proxy.

  • ADFS saml tokens and Weblogic

    Hi, i have configured ADSF server (with Active Directry) and a Weblogic server configured to work with ADFS. Services on weblogic are protected with oracle/wss_sts_issued_saml_bearer_token_over_ssl_service_policy policy.
    Now i need to define a users, having rights to invoke services.
    I create users and roles in Active Directory, And create the same users and roles in Weblogic console.
    How to map users between ActiveDirectory and WebLogic? When Weblogic receive a token with user claims, how will it find if this users is allowed or not to proceed?

    any help..

  • RSA tokens and AAA

    I have an RSA ACE sever and would liek to sue it for console port and VTY port access....DOES AAA support this and if so, what does the config look like...I have done it witH ACS, but would like to try it just going directly to the RSA securID server..and letting the server pop the login...and then I juts poke in my PAsscode and Token PIN...anyone done this yet....

    Very simple:
    1- install RSA Server on host A,
    2- install ACS server on host B,
    3- create an agent host on host A with host B
    ip address,
    4- copy the sdconf.rec file over to %Windows\system32 directory of host B,
    5- install RSA agent software on host B,
    6- create RSA user in host A,
    7- use the RSA test utility on host B to test
    authentication from host B over to host A,
    8, configure ACS to use RSA SecurID. Read
    the instruction on cisco web site, in the
    External database,
    9- run log monitor on host A RSA server,
    10- try to log into a router,
    11- enter the username create in step 6,
    you should see that you will be able to
    authenticate with RSA securID and ACS
    integration.
    Last but not least, if you use TACACS, you
    will NOT be able to use Next-PIN mode on
    RSA Server. Next-PIN mode only works with
    Radius.
    Easy right?

  • Emailed a link (token) and when my browser opens it I get the error: An error occured. The URL had a missing or invalid conirmation token.

    tyring to set up an Alumni Email Forwarding Account. They sent me a confirmation email with the link to complete the process. When I "followed" the link, Firefox opens the page and I get the message: An error occured. The URL had a missing or invalid confirmation token.
    I'm wondering if maybe my browser settings are the problem and if so, what do I need to change.

    Does that link have special characters in it that may get corrupted when pasting or passed via DDE?<br />
    ''(do not post that link on this forum)''

  • A question about Tokens and comparing sets of nos.

    Hi, I'm writing a lottery game that places peoples name and number choices in a file in the format -
    Surname_A/1/2/3/4/5/6 (these are example numbers) -
    and I've got the code to write these to the file, I've got the code that produces 6 random numbers (results). I want to read the file using the / as the delimiter and then compare with each of the results to see how many numbers match. I want to do this using StringTokenizer (I think) but I can't get it to work. (The operation takes place when the button is pressed <button6> and writes to the file "winners") Does anyone have any ideas? I'm very new to this game and I realise I may be going about this the wrong way.
    code(sort of)
    void button6_actionPerformed(ActionEvent e)
    try
    FileReader file = new FileReader ("C:\\Lottery/entries");
    BufferedReader inputFile = new BufferedReader(file);
    FileWriter file1 = new FileWriter ("C:\\Lottery/winners" , true);
    PrintWriter outputFile = new PrintWriter (file);
    line_of_data = newStringTokenizer(inputFile.readLine());
    winCount = 0;
    while (numberOfTokens !=0)
    String name = line_of_data.nextToken("/");
    etc...
    Thanks.

    What you haev to do is construct your string tokenizer passing a string of delimiters as the second argument.
    String tokenizer st = new StringTokenizer(xxx, "/");
    I'm sort of curious about how you are planning to check for end of file, given the way you are reading input.

  • SQL tokens and Crystal Reports add-on

    Hi all!
    Can anyone tell, does sql tokens <parameter_name>@<sql_expression> works in SAP 2007A CR add-on? I know it works in SAP 8.8, but can we get same functionality in SAP 2007? Or we must work with dynamic parameters only in that SAP version?
    Sorry if it discussed earlier, i haven't found any information.
    Alexander.

    Hi Alexander,
    The tokens <parameter_name>@<sql_expression> only works in B1 8.8, not works in 2007A CR add-on.
    Thanks,
    Gordon

Maybe you are looking for

  • Mac won't start (Kernel Panics)

    Hello, My mac won't start up. It turns on, gets as far as the spinning circle and apple logo then a dark screen comes down with a Kernel Panic message. This occurred roughly three months ago and I ended up taking the mac into the regent street store

  • Burned DVD in Toast 9 will not play in DVD Player

    I used Toast 9 to burn a DVD from a Video_TS folder. The DVD plays fine on my Mac, but will not work on any other DVD Player. The Video is in PAL format and I am using a DL DVD - any suggestions??

  • HP 7410 officejet-network wizard does allow me to enter WPA password

    I upgraded my old Verizon router to a newer model (actiontec) and it works perfectly with all my wireless devices in the house, except for my printer! The wireless feature on my HP office jet 7410 All in One Printer worked great on my old router. How

  • CFGRID Binding Not Working in CF9

    I'm having trouble with a CFGRID that works fine in CF8, but when trying to run it on CF9 I get no results and it's like the grid is loading forever. I did have to remove the cfajaximport I was using to get it to load at all, which is does now with t

  • Updated Safari and now it's locked

    My browser kept telling me I was using an outdated version of safari so I finally updated it.  Only to find out that my operating system doesn't support the newest version.  Now the icon is grayed out and locked.  I searched out to fix this but it wa