BestTechie Forums: Quickbasic - BestTechie Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Quickbasic


#1 User is offline   coopetition 

  • Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 29-April 07

Posted 29 April 2007 - 08:36 PM

 

This post has been edited by coopetition: 03 May 2007 - 07:36 PM


#2 User is offline   jcl 

  • UberTechie
  • Group: Linux Experts
  • Posts: 1304
  • Joined: 30-August 04
  • Location:The Internet
  • Operating System:Arch

Posted 30 April 2007 - 12:57 AM

View Postcoopetition, on Apr 29 2007, 06:36 PM, said:

sngNewSalary = sngSalary * .1

sngSalary is a STRING. Either change it to a SINGLE (or DOUBLE) or use the VAL() function to convert it to a numeric value in that expression.

Incidentally, I'm surprised, to say the least, that there are still schools teaching QB.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users