BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 12:10 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: DIG function
PostPosted: Sun May 23, 2010 3:28 pm 
Offline
Guru

Joined: Fri Nov 13, 2009 10:28 am
Posts: 82
Location: Reno, Nevada
I have been trying to use the DIG function with the Nano chips and have had no luck. I did see a post from last July that indicated there was a problem, but can't find any recent posts to indicate whether the problem has been resolved or not. No matter what format etc. I use the debugger and it always returns zeroes. I am trying it using the simple code in the manual.
x var word
y var byte
x=36
y=x dig 1

_________________
Harley


Top
 Profile  
 
 Post subject: Re: DIG function
PostPosted: Sun May 23, 2010 7:19 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
Please email me a bug report(nathan@basicmicro.com). I'll get it fixed in the next release. For now replace your code with:

y = x // 10 ;first digit

y = x / 10 // 10 ;2nd digit

y = x / 100 // 10 ;3rd digit

y = x / 1000 // 10 ;4rd digit

etc...

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: DIG function
PostPosted: Sun May 23, 2010 7:57 pm 
Offline
Guru

Joined: Fri Nov 13, 2009 10:28 am
Posts: 82
Location: Reno, Nevada
Thanks for your prompt answer to my question and I will send a bug report. I also have problems with the newer IDE's starting with 1.0.0.20. When installed my keyboard is partly disabled. The backspace key, arrow keys etc don't work. The numbers, letters etc are still ok. I have a wireless keyboard so I changed it out with a wired one, no help and of course starting /restarting computer, reinstalling the programs from scratch etc. I have 1.0.0.24 installed on my laptop which is running Vista. My desktop is XP sp3. Thanks again.---------
Just tried your code and it works perfectly. THANKS!

_________________
Harley


Top
 Profile  
 
 Post subject: Re: DIG function
PostPosted: Mon May 24, 2010 12:58 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
Open the View menu and click Toolbars/Customize. Then go to the keyboard tab and click Reset All. I had another customer with the same problem and this fixed it. Was some leftover registry settings from an earlier version.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: DIG function
PostPosted: Tue May 25, 2010 1:26 pm 
Offline
Guru

Joined: Fri Nov 13, 2009 10:28 am
Posts: 82
Location: Reno, Nevada
Thanks, I'll give that a shot!

_________________
Harley


Top
 Profile  
 
 Post subject: Re: DIG function
PostPosted: Tue May 25, 2010 6:55 pm 
Offline
Guru

Joined: Fri Nov 13, 2009 10:28 am
Posts: 82
Location: Reno, Nevada
That was the answer. All functions work fine now. Thanks!

_________________
Harley


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO