Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Question about Format

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
pvdbos

Bascom Member



Joined: 25 Nov 2006
Posts: 96
Location: Edam

netherlands.gif
PostPosted: Mon Sep 29, 2014 7:23 pm    Post subject: Question about Format Reply with quote

I will like that the variable (dcf_bits) is showed as an binnare string on my Display.
but Bascom it's gif an error:
SUB or FUNCION not declared [put_string Bin]

F = Str(dcf_bits)
F = Format(f , "00000000")
Call Move_cursor(48 , 32) : Call Text_font(0) : Call Text_forground(white) : Call Put_string Bin(f)

Does anyone how to......
Thanx

(BASCOM-AVR version : 2.0.7.7 )

_________________
http://www.hobbyrobots.nl
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Mon Sep 29, 2014 10:02 pm    Post subject: Reply with quote

then bin() function returns a string when you pass it a numeric value.
you must not pass it a string.

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum