Jump to content

Accessing property which has the same name as a keyword


px03afk
 Share

Go to solution Solved by BrewManNH,

Recommended Posts

I'm trying to use Redemption RDOSession.  I have things working fine apart from the difficulty of accessing an item property 'To'.  When I use the syntax $tiem.to I get an error: missing separator character before keyword.  I've not been able to find anthing to tell me any different form of syntax or a way of defining the property name in any other way.

Is there a way of being able to access a property which has a name the same as a keyword?

Link to comment
Share on other sites

  • Solution

If you had searched the forum you would have found the answer to your question in about a dozen different threads. Download the latest beta version of Au3Check.exe and that will fix the issue. It's not a bug in AutoIt, just a bug in the syntax checker.

BTW, you posted in the wrong forum, this should have been posted GH&S.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

Apologies for a) not finding the answer - I tried many combinationsa of keywords and none of them gave me an answer and B) for the wrong forum - but as I was using this in the COM context I thought this was the appropriate forum.

I have now downloaded the updated binary and can confirm it it working OK.  I am somewhat surprised that I had to download this separately as I only just updated to the latest AutoIt a week ago.

Anyhow thanks for the help

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...