Questions tagged [formatted]

81 questions
1
vote
1 answer

How to get_formatted_order_total() if I know order_number in WooCommerce

I want to display 'Price' and 'Payment method' for a specific order with get_formatted_order_total(), all I know is order_number. What is the best way to get this formatted order total for a specific order?
Geri
  • 21
  • 2
1
vote
2 answers

Awk: formatted print of varying number of elements

I want to printf records with varying number of elements, or, for example, a jagged array. The element types are a %s followed by undeterminate number of %d. Example input, pseudo-code, desired output: $ echo "abc 1 2 3 4 5 def 8 9 sometext…
Nick Coleman
  • 445
  • 3
  • 10
1
vote
1 answer

VB.Net generated html table to clipboard

I have a code, what is generating a HTML formatted table and try to put to the clipboard. My problem is that, sometimes missing the end of the data or the formatting from the pasted data. If I write the htmlStructureStr variable to the debug window…
norbre
  • 97
  • 5
1
vote
0 answers

fetch and display formatted data from sql DataBase to webpage

i am trying to display data from database to web browser but the text which is displayed on page is scattered data it should be formatted as in database.. plz help how to fetch and display data from database to webpage.... showing result is like…
rohit_235
  • 11
  • 1
1
vote
1 answer

java code to display a floating point value in specified format in jasper report

The value 13.10 is printed as 13.1 in my jasper report , I want to print it as 13.10 itself , How to do it .The corresponding JRXML statement is
moshe
  • 13
  • 3
1
vote
1 answer

Formatted String from List Psychopy

My task is a variation of a multiple object tracking task. There are 7 circles on the screen. It randomly selects 3 circles to change the color (red, green, blue) briefly to indicate to the participant to track these circles. After the color change,…
lo_rabb
  • 99
  • 2
  • 9
1
vote
4 answers

PHP If/else statement with formatted date to determine the part of the day

I am trying to make a simple if/else statement in PHP. Someting simple like this: The problem is the value i receive from the database is an…
user3166736
  • 13
  • 1
  • 4
1
vote
1 answer

Parse formatted string in Golang

I'm trying to parse a GNSS RINEX file using Golang. For example, here's the RINEX specification for the VERSION line: +--------------------+------------------------------------------+------------+ |RINEX VERSION / TYPE| - Format version (2.11) …
hankivstmb
  • 131
  • 1
  • 10
1
vote
2 answers

WPF Display formatted multiline text using data binding

I need to display the following using WPF databinding (the values change). Headers must be bold, the info lines are normal text. If info for a given header does not exist, I want to collapse that section, including the header. I prefer all the data…
Gord
  • 11
  • 2
1
vote
2 answers

Find and replace with a formatted string in perl

I have a file that looks like this: myFile Hello World Hello World Hello World Hello Hello Hello World Hello World What I want to do is a find and replace of any line in the file that has just the word "Hello" with the string…
Rebulah
  • 11
  • 1
1
vote
1 answer

Convert formatted string to table of tables

In Lua, is there any way to split this string: etc3=1336,etc2=14477,etc4=1335,etc1=1337 into this table? tbl = { { 'etc3', 1336 }, { 'etc2', 14477 }, { 'etc4', 1335 }, { 'etc1', 1337 }, } Any help is appreciated.
ContentiousMaximus
  • 1,214
  • 2
  • 14
  • 24
1
vote
1 answer

Fortran formatted write function triggers "has exited with code 408 (0x198)" on IF Composer 2013

When following Fortran code is executed on the Intel Fortran Composer 2013 the compiler triggers a breakpoint at write function and retuns code 408: character*20 date_char character*10 LADATE ... if (date_char(3:3)…
Jan
  • 141
  • 2
  • 7
1
vote
0 answers

Save formatted xml

Hi Can someone please tell me why this inst saving to my XML file? it doesn't return any errors but doesn't write to the file either? It might be silly so I apologize in advance
1
vote
3 answers

How to extract formatted text in C++?

This might have appeared before, but I couldn't understand how to extract formatted data. Below is my code to extract all text between string "[87]" and "[90]" in a text file. Apparently, the position of [87] and [90] is the same as indicated in…
Bryan Wong
  • 585
  • 2
  • 6
  • 20
1
vote
1 answer

Reading file formatted with C in C#

I have a binary file, that was written in C, which contains a long stream of numbers. First it contains subsequently 4 times an int (so the first 16 bytes are 4 ints) and then it contains doubles (I assume every 8 bytes a new double). There are no…
philkark
  • 2,292
  • 7
  • 35
  • 56