"Locate" in the program
#23
@SMcNeill - Unfortunately that does not work. The correct formatting remains the problem.

At least so it will compiled.
Code: (Select All)
'TAB-Versuch, nach Vorlage SMcNeill - 10. Juni 2022

OPTION _EXPLICIT

Declare TB(spaces as integer)

DIM ProductMaterial, IndirectCost, MaterialCost AS DOUBLE

PRINT TB(5);
INPUT "Production material       : ", ProductMaterial

IndirectCost = (ProductMaterial * 8) / 100
PRINT TB(5);
PRINT USING "Indirect material cost    : ###,###.##"; IndirectCost

MaterialCost = ProductMaterial + IndirectCost
PRINT TB(5);
PRINT USING "Material costs            : ###,###.##"; MaterialCost

FUNCTION TB (spaces) 'tab spaces without
  DIM x AS INTEGER

  x = POS(0)
  IF x > spaces THEN PRINT
  LOCATE , spaces
END FUNCTION

[Image: TAB-Versuch2022-06-10.jpg]
Reply


Messages In This Thread
"Locate" in the program - by Kernelpanic - 06-07-2022, 08:04 PM
RE: "Locate" in the program - by bplus - 06-08-2022, 03:30 PM
RE: "Locate" in the program - by Kernelpanic - 06-08-2022, 05:30 PM
RE: "Locate" in the program - by bplus - 06-08-2022, 06:07 PM
RE: "Locate" in the program - by bplus - 06-08-2022, 07:26 PM
RE: "Locate" in the program - by Kernelpanic - 06-08-2022, 08:39 PM
RE: "Locate" in the program - by RhoSigma - 06-08-2022, 09:49 PM
RE: "Locate" in the program - by Kernelpanic - 06-09-2022, 03:01 PM
RE: "Locate" in the program - by bplus - 06-08-2022, 08:41 PM
RE: "Locate" in the program - by Pete - 06-09-2022, 01:50 AM
RE: "Locate" in the program - by bplus - 06-09-2022, 03:40 AM
RE: "Locate" in the program - by Pete - 06-09-2022, 03:55 AM
RE: "Locate" in the program - by Kernelpanic - 06-09-2022, 03:14 PM
RE: "Locate" in the program - by James D Jarvis - 06-09-2022, 03:16 PM
RE: "Locate" in the program - by Kernelpanic - 06-09-2022, 04:12 PM
RE: "Locate" in the program - by James D Jarvis - 06-09-2022, 04:30 PM
RE: "Locate" in the program - by RhoSigma - 06-09-2022, 07:50 PM
RE: "Locate" in the program - by Kernelpanic - 06-09-2022, 09:16 PM
RE: "Locate" in the program - by Kernelpanic - 06-09-2022, 09:04 PM
RE: "Locate" in the program - by Kernelpanic - 06-09-2022, 04:14 PM
RE: "Locate" in the program - by SMcNeill - 06-10-2022, 04:47 AM
RE: "Locate" in the program - by SMcNeill - 06-10-2022, 05:08 AM
RE: "Locate" in the program - by Kernelpanic - 06-10-2022, 06:29 PM
RE: "Locate" in the program - by bplus - 06-10-2022, 07:42 PM
RE: "Locate" in the program - by Kernelpanic - 06-10-2022, 08:47 PM
RE: "Locate" in the program - by DSMan195276 - 06-10-2022, 11:34 PM
RE: "Locate" in the program - by bplus - 06-10-2022, 09:00 PM
RE: "Locate" in the program - by Kernelpanic - 06-10-2022, 11:15 PM
RE: "Locate" in the program - by Kernelpanic - 06-10-2022, 11:22 PM
RE: "Locate" in the program - by Kernelpanic - 06-10-2022, 11:49 PM
RE: "Locate" in the program - by DSMan195276 - 06-10-2022, 11:57 PM
RE: "Locate" in the program - by bplus - 06-11-2022, 12:10 AM
RE: "Locate" in the program - by Kernelpanic - 06-12-2022, 08:50 PM
RE: "Locate" in the program - by Kernelpanic - 06-12-2022, 08:56 PM
RE: "Locate" in the program - by bplus - 06-12-2022, 09:27 PM
RE: "Locate" in the program - by Kernelpanic - 06-12-2022, 09:54 PM
RE: "Locate" in the program - by bplus - 06-12-2022, 11:16 PM
RE: "Locate" in the program - by Kernelpanic - 06-13-2022, 01:16 PM
RE: "Locate" in the program - by bplus - 06-13-2022, 07:07 PM
RE: "Locate" in the program - by Kernelpanic - 06-13-2022, 08:49 PM
RE: "Locate" in the program - by Pete - 06-14-2022, 06:10 AM



Users browsing this thread: 12 Guest(s)