none
Microsoft SmallBasic library object RRS feed

  • Question

  • We can't get the Smallbasic library object working - I notice there was a thread in 2014 reporting issues. We're having difficulty determining whether this is a server issue or something to do with our install. We are using the correct syntax (

    TextWindow.WriteLine (Dictionary.GetDefinition("byte")). We are using Smallbasic 1.2


    • Edited by SamGosling Tuesday, September 6, 2016 5:06 PM
    Tuesday, September 6, 2016 3:14 PM

Answers

  • Hello Sam , can you do any other operations ? Such as 

    Textwindow.Writeline("Hello World") '?

    If you can you do a tracert google.com and ping google.com ? If both commands work successfully it may be useful to uninstall and reinstall Small Basic  

    Tuesday, September 6, 2016 9:22 PM
  • The following is assuming it is just an issue with Dictionary.GetDefinition.

    The 2014 issue was fixed for SB v 1.2.

    Try typing the following into a browser

    http://rr.office.microsoft.com/Research/query.asmx

    what do you get?

    If you get an option to Status then try that and then Invoke to test.

    If that is OK, then try pasting all of the following (copy and paste all of the xml italics) as a Query.  You should get a reply containing "a group of eight bits of computer information, representing a unit of data such as a number or letter" in the xml reply.

    <QueryPacket xmlns='urn:Microsoft.Search.Query' revision='1' >
                                       <Query domain='{FEF89077-4F4D-4803-A8BF-228083F70EAA}'>
                                         <Context>
                                           <QueryText type='STRING' language='en-us' >byte</QueryText>
                                           <LanguagePreference>en-us</LanguagePreference>
                                         </Context>
                                         <OfficeContext xmlns='urn:Microsoft.Search.Query.Office.Context' revision='1'>
                                           <UserPreferences>
                                             <ParentalControl>false</ParentalControl>
                                           </UserPreferences>
                                           <ServiceData>EDICT</ServiceData>
                                           <ApplicationContext>
                                             <Name>Microsoft Office Word</Name>
                                             <Version>(14.0.3524)</Version>
                                           </ApplicationContext>
                                           <QueryLanguage>en-us</QueryLanguage>
                                           <KeyboardLanguage>en-us</KeyboardLanguage>
                                        </OfficeContext>
                                       </Query>
                                     </QueryPacket>


    Tuesday, September 6, 2016 9:58 PM
    Moderator

All replies

  • Hi ! welcome to Small Basic forum :)

    i have copy this line to my Small Basic 1.2.0.0 and it work well

         TextWindow.WriteLine (Dictionary.GetDefinition("byte"))

    here is the result:


    • Edited by YLedEditor Tuesday, September 6, 2016 5:27 PM
    Tuesday, September 6, 2016 5:25 PM
    Answerer
  • Many thanks for that - I can't work out what might be wrong. I've tried this on our school network where I thought maybe there would be some issue with connecting to the server where the dictionary is located. I've also tried it at home with exactly the same results. I can't insert an image but my one line program leaves a blank line and then displays, "Press any key to continue"

    Not really sure where to start trouble shooting this so any ideas gratefully received.

    Tuesday, September 6, 2016 8:48 PM
  • Hello Sam , can you do any other operations ? Such as 

    Textwindow.Writeline("Hello World") '?

    If you can you do a tracert google.com and ping google.com ? If both commands work successfully it may be useful to uninstall and reinstall Small Basic  

    Tuesday, September 6, 2016 9:22 PM
  • The following is assuming it is just an issue with Dictionary.GetDefinition.

    The 2014 issue was fixed for SB v 1.2.

    Try typing the following into a browser

    http://rr.office.microsoft.com/Research/query.asmx

    what do you get?

    If you get an option to Status then try that and then Invoke to test.

    If that is OK, then try pasting all of the following (copy and paste all of the xml italics) as a Query.  You should get a reply containing "a group of eight bits of computer information, representing a unit of data such as a number or letter" in the xml reply.

    <QueryPacket xmlns='urn:Microsoft.Search.Query' revision='1' >
                                       <Query domain='{FEF89077-4F4D-4803-A8BF-228083F70EAA}'>
                                         <Context>
                                           <QueryText type='STRING' language='en-us' >byte</QueryText>
                                           <LanguagePreference>en-us</LanguagePreference>
                                         </Context>
                                         <OfficeContext xmlns='urn:Microsoft.Search.Query.Office.Context' revision='1'>
                                           <UserPreferences>
                                             <ParentalControl>false</ParentalControl>
                                           </UserPreferences>
                                           <ServiceData>EDICT</ServiceData>
                                           <ApplicationContext>
                                             <Name>Microsoft Office Word</Name>
                                             <Version>(14.0.3524)</Version>
                                           </ApplicationContext>
                                           <QueryLanguage>en-us</QueryLanguage>
                                           <KeyboardLanguage>en-us</KeyboardLanguage>
                                        </OfficeContext>
                                       </Query>
                                     </QueryPacket>


    Tuesday, September 6, 2016 9:58 PM
    Moderator
  • Any progress Sam?
    Monday, October 17, 2016 9:50 PM
    Moderator